Skip to content

What does max_upload_speed mean? #298

Answered by sagebind
staticgc asked this question in Questions
Discussion options

You must be logged in to vote

The docs say:

Set a maximum upload speed for the request body, in bytes per second.

This isn't as clear as it could be, but what this means is that this limit is applied to each request body upload individually. For example, if you had three concurrent requests and your client was configured with a 10 MiB/s max upload speed, then effectively your program might cumulatively use up to 30 MiB/s, 10 for each request. Setting a max upload speed on a Client instance is just a way of setting a default value for each request it sends.

The use of HTTP/1.x or HTTP/2 has no effect on the behavior, nor does connection pooling or reuse. The limit is always applied to individual requests.

I think it …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sagebind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants