summaryrefslogtreecommitdiff
path: root/lib/urldata.h
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/urldata.h
parented6466d17603aa39bb4b1685544747f4c64ec7b0 (diff)
downloadcurl-b3de497d8316647d988e97703f975e0acd40cacd.tar.gz
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/urldata.h')
-rw-r--r--lib/urldata.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index e9e4fb872..197040c1a 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -952,11 +952,16 @@ struct connectdata {
bool writechannel_inuse; /* whether the write channel is in use by an easy
handle */
bool is_in_pipeline; /* TRUE if this connection is in a pipeline */
+ bool server_supports_pipelining; /* TRUE if server supports pipelining,
+ set after first response */
struct curl_llist *send_pipe; /* List of handles waiting to
send on this pipeline */
struct curl_llist *recv_pipe; /* List of handles waiting to read
their responses on this pipeline */
+ struct curl_llist *pend_pipe; /* List of pending handles on
+ this pipeline */
+#define MAX_PIPELINE_LENGTH 5
char* master_buffer; /* The master buffer allocated on-demand;
used for pipelining. */