Repository navigation
[PR #14581/abbb10cd backport][3.15] Upgrade to llhttp 9.5.0 - #14582
patchback[bot] wants to merge 1 commit into
Conversation
(cherry picked from commit abbb10c)
Confidence Score: 4/5
[High impact] The upgrade reaches aiohttp's shared HTTP parsing paths. The upgrade appears safe to merge, with a non-blocking difference in close behavior between the parser backends. Reviews (1) · Last reviewed commit: "Upgrade to llhttp 9.5.0 (#14581)" · Reviewed by Greptile |
| @@ -1 +1 @@ | |||
| Subproject commit 82755cf32a23b88c87ac8ef9b8bec649fb06ddf5 | |||
| Subproject commit 51a7cb1fbc1426ff4c3528d771e0563d3c9a17f7 | |||
There was a problem hiding this comment.
Close behavior differs by backend
The upgrade treats Connection: close foo and Connection: close\t0 as instructions to close, but the Python parser still recognizes only whole comma-separated close tokens. The compiled parser sets should_close=True, while the Python parser sets it to False and can accept another request on the connection.
Align the fallback with the chosen close policy and add a shared regression test.
Knowledge Base Used: HTTP parsing and message writing
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 3.15 #14582 +/- ##
=======================================
Coverage 96.57% 96.57%
=======================================
Files 161 161
Lines 55687 55687
Branches 2996 2996
=======================================
Hits 53782 53782
Misses 1737 1737
Partials 168 168
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Merging this PR will not alter performance1 warning
Comparing Footnotes
|
This is a backport of PR #14581 as merged into master (abbb10c).