Skip to content

http: limit the initial send amount to used upload buffer size#7022

Closed
bagder wants to merge 2 commits intomasterfrom
bagder/http-sendsize
Closed

http: limit the initial send amount to used upload buffer size#7022
bagder wants to merge 2 commits intomasterfrom
bagder/http-sendsize

Conversation

@bagder
Copy link
Member

@bagder bagder commented May 6, 2021

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.

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.
@bagder bagder closed this in 1763ace May 7, 2021
@bagder bagder deleted the bagder/http-sendsize branch May 7, 2021 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants