Set PoolManager blocksize if urllib3 is v2 #3612
Merged
hssyoo merged 2 commits intoboto:developfrom Feb 5, 2026
Merged
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #3612 +/- ##
===========================================
- Coverage 92.71% 92.67% -0.05%
===========================================
Files 68 68
Lines 15561 15567 +6
===========================================
- Hits 14428 14427 -1
- Misses 1133 1140 +7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
SamRemis
approved these changes
Jan 31, 2026
Contributor
SamRemis
left a comment
There was a problem hiding this comment.
Thanks Steve!
Appreciate the deep dive and PR here. Looks good- I was able to reproduce significant bandwidth increases with the new block size from this PR compared to the before.
aws-sdk-python-automation
added a commit
that referenced
this pull request
Feb 5, 2026
* release-1.42.43: Bumping version to 1.42.43 Update endpoints model Update to latest models Set PoolManager blocksize if urllib3 is v2 (#3612)
hswong3i
pushed a commit
to alvistack/boto-botocore
that referenced
this pull request
Feb 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While running some S3 performance tests, we noticed that network bandwidth took a significant hit uploading large objects when going from urllib3 v1 to v2. We isolated the bottleneck to this commit: urllib3/urllib3@791c385
urllib3 v2 implemented in-house chunking logic and set a default blocksize of 16KB. This created a bottleneck when transferring larger payloads. Experiments showed that setting 128KB blocksizes was roughly the point where we started getting diminishing returns in performance improvements with large payloads and had negligible impact on small payloads.
We're setting an initial override blocksize of 128KB based on current data. Ideally we won't touch this too much but we can revisit this value if we find users aren't benefitting from it.
PR that added
blocksizesupport: urllib3/urllib3#2348