diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-09-27 23:20:13 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-09-27 23:23:58 +0200 |
commit | af90becf4b91be3b45d9bbafa6366ed901c2572c (patch) | |
tree | 6e71984b544fb5cb5b2b131f412b82e809199f4c /lib/connect.h | |
parent | 46ad4f7f93d80998eba01ceaa6c2619e381a151e (diff) | |
download | curl-af90becf4b91be3b45d9bbafa6366ed901c2572c.tar.gz |
http2: set TCP_NODELAY unconditionally
For a single-stream download from localhost, we managed to increase
transfer speed from 1.6MB/sec to around 400MB/sec, mostly because of
this single fix.
Diffstat (limited to 'lib/connect.h')
-rw-r--r-- | lib/connect.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/connect.h b/lib/connect.h index 91646c75e..c64328151 100644 --- a/lib/connect.h +++ b/lib/connect.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -102,6 +102,8 @@ CURLcode Curl_socket(struct connectdata *conn, struct Curl_sockaddr_ex *addr, curl_socket_t *sockfd); +void Curl_tcpnodelay(struct connectdata *conn, curl_socket_t sockfd); + #ifdef CURLDEBUG /* * Curl_connclose() sets the bit.close bit to TRUE with an explanation. |