summaryrefslogtreecommitdiff
path: root/lib/urldata.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-05-06 10:25:56 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-05-07 08:51:39 +0200
commit1763aceb0cbc14ebff425eeba3987322ac037a0e (patch)
tree4ae3d8a94a61f065d358200091c9ed724aa78ec0 /lib/urldata.h
parent817c01dacc3a344713607ee5da0ca2f9306d6c90 (diff)
downloadcurl-1763aceb0cbc14ebff425eeba3987322ac037a0e.tar.gz
http: limit the initial send amount to used upload buffer size
Previously this logic would cap the send to CURL_MAX_WRITE_SIZE bytes, but for the situations where a larger upload buffer has been set, this function can benefit from sending more bytes. With default size used, this does the same as before. Also changed the storage of the size to an 'unsigned int' as it is not allowed to be set larger than 2M. Also added cautions to the man pages about changing buffer sizes in run-time. Closes #7022
Diffstat (limited to 'lib/urldata.h')
-rw-r--r--lib/urldata.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index 04daf778a..421a86b62 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -1722,8 +1722,8 @@ struct UserDefined {
struct ssl_general_config general_ssl; /* general user defined SSL stuff */
long dns_cache_timeout; /* DNS cache timeout */
long buffer_size; /* size of receive buffer to use */
- size_t upload_buffer_size; /* size of upload buffer to use,
- keep it >= CURL_MAX_WRITE_SIZE */
+ unsigned int upload_buffer_size; /* size of upload buffer to use,
+ keep it >= CURL_MAX_WRITE_SIZE */
void *private_data; /* application-private data */
struct curl_slist *http200aliases; /* linked list of aliases for http200 */
unsigned char ipver; /* the CURL_IPRESOLVE_* defines in the public header