diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-03-25 13:37:18 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-03-25 13:37:18 +0000 |
commit | bb3d6e8552f428bd0c2624854403d36ab3cf163d (patch) | |
tree | 3844a61e49ad9a1bdddd671681bfc1845f04ce95 /lib/url.c | |
parent | 189c2f498987e443836aada953ace7795202e350 (diff) |
tcp-nodelay patch by Joe Halpin
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1303,6 +1303,14 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...) data->set.max_filesize = va_arg(param, curl_off_t); break; + case CURLOPT_TCP_NODELAY: + /* + * Enable or disable TCP_NODELAY, which will disable/enable the Nagle + * algorithm + */ + data->tcp_nodelay = va_arg(param, long); + break; + default: /* unknown tag and its companion, just ignore: */ return CURLE_FAILED_INIT; /* correct this */ |