mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:13:32 +03:00
tool: add --tcp-fastopen option
This commit is contained in:
parent
8f72b13660
commit
d49087f6bc
5 changed files with 12 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue