[curl/curl] 1763ac: http: limit the initial send amount to used upload...
Daniel Stenberg <[email protected]> Thu, 06 May 2021 23:52:24 -0700
| Newsgroups | gmane.comp.web.curl.cvs |
|---|---|
| Message-ID | <curl/curl/push/refs/heads/master/[email protected]> |
Branch: refs/heads/master
Home: https://github.com/curl/curl
Commit: 1763aceb0cbc14ebff425eeba3987322ac037a0e
https://github.com/curl/curl/commit/1763aceb0cbc14ebff425eeba3987322ac037a0e
Author: Daniel Stenberg <[email protected]>
Date: 2021-05-07 (Fri, 07 May 2021)
Changed paths:
M docs/libcurl/opts/CURLOPT_BUFFERSIZE.3
M docs/libcurl/opts/CURLOPT_UPLOAD_BUFFERSIZE.3
M lib/http.c
M lib/setopt.c
M lib/smb.c
M lib/smtp.c
M lib/urldata.h
Log Message:
-----------
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
_______________________________________________
curl-commits mailing list
[email protected]
https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-commits