[curl/curl] d850f5: http: limit the initial send amount to used upload...

Daniel Stenberg <[email protected]>
Newsgroups gmane.comp.web.curl.cvs
Message-ID <curl/curl/push/refs/heads/bagder/http-sendsize/[email protected]>
  Branch: refs/heads/bagder/http-sendsize
  Home:   https://github.com/curl/curl
  Commit: d850f524cb58347197ce94e34046b32fc1d61014
      https://github.com/curl/curl/commit/d850f524cb58347197ce94e34046b32fc1d61014
  Author: Daniel Stenberg <[email protected]>
  Date:   2021-05-06 (Thu, 06 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.


_______________________________________________
curl-commits mailing list
[email protected]
https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.