From d49087f6bc95d159eeb1172173fc1e95411041fa Mon Sep 17 00:00:00 2001 From: Alessandro Ghedini Date: Tue, 16 Feb 2016 12:21:34 +0000 Subject: tool: add --tcp-fastopen option --- src/tool_operate.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/tool_operate.c') 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) -- cgit v1.2.3