diff options
author | Alessandro Ghedini <alessandro@cloudflare.com> | 2016-02-16 12:21:34 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-04-18 23:17:19 +0200 |
commit | d49087f6bc95d159eeb1172173fc1e95411041fa (patch) | |
tree | 029e38a3d9ad38ad033ab0e92abc01632be5cfdc /src/tool_operate.c | |
parent | 8f72b1366054c2466f45fd4ea6bf42d74a0400d2 (diff) |
tool: add --tcp-fastopen option
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r-- | src/tool_operate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index deabf90b3..ebd485c20 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -794,6 +794,9 @@ static CURLcode operate_do(struct GlobalConfig *global, if(config->tcp_nodelay) my_setopt(curl, CURLOPT_TCP_NODELAY, 1L); + if(config->tcp_fastopen) + my_setopt(curl, CURLOPT_TCP_FASTOPEN, 1L); + /* where to store */ my_setopt(curl, CURLOPT_WRITEDATA, &outs); if(metalink || !config->use_metalink) |