summaryrefslogtreecommitdiff
path: root/lib/transfer.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-08-17 11:36:12 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-08-18 15:48:52 +0200
commit8c80a9d1e26be192d30a075e2c7397f8f12498c6 (patch)
treeb309ade8c533d99b2e9e154e45c04d24e22d721b /lib/transfer.c
parente6e9b006f770ef104fbcdef32dd6e7f42eb114b7 (diff)
downloadcurl-8c80a9d1e26be192d30a075e2c7397f8f12498c6.tar.gz
upload: change default UPLOAD_BUFSIZE to 64KB
To make uploads significantly faster in some circumstances. Part 2 of #2888 Closes #2892
Diffstat (limited to 'lib/transfer.c')
-rw-r--r--lib/transfer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 96d8ab48f..ab9094adc 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -992,7 +992,7 @@ static CURLcode readwrite_upload(struct Curl_easy *data,
(data->set.crlf))) {
/* Do we need to allocate a scratch buffer? */
if(!data->state.scratch) {
- data->state.scratch = malloc(2 * data->set.buffer_size);
+ data->state.scratch = malloc(2 * UPLOAD_BUFSIZE);
if(!data->state.scratch) {
failf(data, "Failed to alloc scratch buffer!");