aboutsummaryrefslogtreecommitdiff
path: root/lib/urldata.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-04-24 10:18:06 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-04-24 10:18:06 +0000
commitbc1ae973daafb5881b65e179d2f5ce891acf22bd (patch)
treefc844343a2ad8f4660d3cd6e53ce7da5946fa117 /lib/urldata.h
parent6a35841b2edcbd865e914ec33ea0568199a26a8a (diff)
Robert Iakobashvili made the 'master_buffer' get allocated first once it is
can/will be used as it then makes the common cases save 16KB of data for each easy handle that isn't used for pipelining.
Diffstat (limited to 'lib/urldata.h')
-rw-r--r--lib/urldata.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index b129ca708..023bc3ca3 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -868,7 +868,8 @@ struct connectdata {
struct curl_llist *recv_pipe; /* List of handles waiting to read
their responses on this pipeline */
- char master_buffer[BUFSIZE]; /* The master buffer for this connection. */
+ char* master_buffer; /* The master buffer allocated on-demand;
+ used for pipelining. */
size_t read_pos; /* Current read position in the master buffer */
size_t buf_len; /* Length of the buffer?? */