diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-08-18 16:17:05 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-09-06 10:53:39 +0200 |
commit | 2825f46d950ca9b0e269ed8dc6a97c5238a17c30 (patch) | |
tree | 1869f93855474b2fe4469351b0dd5ef890bb1fb1 /lib/smb.c | |
parent | 87fefe5ebfa152386396b8e232c7b5b0609f6f35 (diff) | |
download | curl-2825f46d950ca9b0e269ed8dc6a97c5238a17c30.tar.gz |
CURLOPT_UPLOAD_BUFFERSIZE: set upload buffer size
This is step 3 of #2888.
Fixes #2888
Closes #2896
Diffstat (limited to 'lib/smb.c')
-rw-r--r-- | lib/smb.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -610,7 +610,8 @@ static CURLcode smb_send_and_recv(struct connectdata *conn, void **msg) /* Check if there is data in the transfer buffer */ if(!smbc->send_size && smbc->upload_size) { - size_t nread = smbc->upload_size > UPLOAD_BUFSIZE ? UPLOAD_BUFSIZE : + size_t nread = smbc->upload_size > conn->data->set.upload_buffer_size ? + conn->data->set.upload_buffer_size : smbc->upload_size; conn->data->req.upload_fromhere = conn->data->state.ulbuf; result = Curl_fillreadbuffer(conn, nread, &nread); |