aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-25 13:37:18 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-25 13:37:18 +0000
commitbb3d6e8552f428bd0c2624854403d36ab3cf163d (patch)
tree3844a61e49ad9a1bdddd671681bfc1845f04ce95 /lib/url.c
parent189c2f498987e443836aada953ace7795202e350 (diff)
tcp-nodelay patch by Joe Halpin
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index f7b7cc378..bebf51df1 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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 */