tool: add --tcp-fastopen option

This commit is contained in:
Alessandro Ghedini 2016-02-16 12:21:34 +00:00 committed by Daniel Stenberg
parent 8f72b13660
commit d49087f6bc
5 changed files with 12 additions and 0 deletions

View file

@ -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)