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.
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user