New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collapse request chunked data and framing into one send() call #1906
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1906 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 23 23
Lines 2049 2109 +60
=========================================
+ Hits 2049 2109 +60
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
Looking at how urllib3 behaves with Wireshark I saw chunks and chunk framing being sent in separate TCP packets even when only a few bytes. Collapsing data and framing into one
send()
call alleviated this issue. Should reduce the number of TCP packets sent when usingrequest_chunked
by ~2-4x.I'd like to backport this to 1.25-series and potentially make a release there with other bug fixes that have landed.