tcp-nodelay patch by Joe Halpin

This commit is contained in:
Daniel Stenberg
2004-03-25 13:37:18 +00:00
parent 189c2f4989
commit bb3d6e8552
7 changed files with 70 additions and 1 deletions

View File

@@ -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 */