diff options
author | Daniel Stenberg <daniel@haxx.se> | 2007-04-24 10:18:06 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2007-04-24 10:18:06 +0000 |
commit | bc1ae973daafb5881b65e179d2f5ce891acf22bd (patch) | |
tree | fc844343a2ad8f4660d3cd6e53ce7da5946fa117 /lib/sendf.c | |
parent | 6a35841b2edcbd865e914ec33ea0568199a26a8a (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/sendf.c')
-rw-r--r-- | lib/sendf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sendf.c b/lib/sendf.c index bf9ee490a..922550b00 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -495,7 +495,7 @@ int Curl_read(struct connectdata *conn, /* connection data */ } /* If we come here, it means that there is no data to read from the buffer, * so we read from the socket */ - bytesfromsocket = MIN(sizerequested, sizeof(conn->master_buffer)); + bytesfromsocket = MIN(sizerequested, BUFSIZE * sizeof (char)); buffertofill = conn->master_buffer; } else { |