aboutsummaryrefslogtreecommitdiff
path: root/lib/transfer.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-01-16 12:24:00 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-01-16 12:24:00 +0000
commitb3de497d8316647d988e97703f975e0acd40cacd (patch)
tree74b86d8d957d3c1481d049cfb73201b62d6161c4 /lib/transfer.c
parented6466d17603aa39bb4b1685544747f4c64ec7b0 (diff)
Dmitry Kurochkin worked a lot on improving the HTTP Pipelining support that
previously had a number of flaws, perhaps most notably when an application fired up N transfers at once as then they wouldn't pipeline at all that nicely as anyone would think... Test case 530 was also updated to take the improved functionality into account.
Diffstat (limited to 'lib/transfer.c')
-rw-r--r--lib/transfer.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index eb7583c08..69ce8af8b 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -830,6 +830,15 @@ CURLcode Curl_readwrite(struct connectdata *conn,
infof(data, "HTTP 1.0, assume close after body\n");
conn->bits.close = TRUE;
}
+ else if(k->httpversion >= 11 &&
+ !conn->bits.close) {
+ /* If HTTP version is >= 1.1 and connection is persistent
+ server supports pipelining. */
+ DEBUGF(infof(data,
+ "HTTP 1.1 or later with persistent connection, "
+ "pipelining supported\n"));
+ conn->server_supports_pipelining = TRUE;
+ }
switch(k->httpcode) {
case 204: