Skip to content

[PR #14581/abbb10cd backport][3.15] Upgrade to llhttp 9.5.0 - #14582

Open
patchback[bot] wants to merge 1 commit into
3.15from
patchback/backports/3.15/abbb10cd926503a61e44b93aa016d6b08407e3ec/pr-14581
Open

patchback[bot] wants to merge 1 commit into
3.15from
patchback/backports/3.15/abbb10cd926503a61e44b93aa016d6b08407e3ec/pr-14581

Conversation

@patchback

@patchback patchback Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

This is a backport of PR #14581 as merged into master (abbb10c).

(cherry picked from commit abbb10c)
@patchback
patchback Bot requested review from asvetlov and webknjaz as code owners December 3, 2026 18:24
@patchback patchback Bot mentioned this pull request Dec 3, 2026
@greptile-apps

greptile-apps Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

security Security Review

This PR appears safe to merge from a security standpoint.

What was checked
  • The PR changes no aiohttp code: it bumps the vendored llhttp submodule from 9.3.1 to v9.5.0, adds a changelog line, and drops a stale version note from THREAT_MODEL.md.
  • The backport commit is byte-for-byte the same change as the upstream master merge it backports.
  • The parser's strictness settings (lenient flags, method table) are set explicitly by aiohttp's own Cython wrapper, which this PR does not change, so upstream default changes cannot silently loosen request parsing.
  • No vulnerable dependency version is introduced by the bump, and the automated scanners flagged nothing.
  • The llhttp 9.3.1 to 9.5.0 source diff itself could not be read because the submodule is not checked out in this environment.

@greptile-apps

greptile-apps Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5 Tier: apexRetriggerView in Greptile

[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

Comment thread vendor/llhttp
@@ -1 +1 @@
Subproject commit 82755cf32a23b88c87ac8ef9b8bec649fb06ddf5
Subproject commit 51a7cb1fbc1426ff4c3528d771e0563d3c9a17f7

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 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

codecov Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.57%. Comparing base (76c9712) to head (995b91f).
✅ All tests successful. No failed tests found.

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           
Flag Coverage Δ
Autobahn 21.10% <ø> (ø)
CI-GHA 96.45% <ø> (ø)
OS-Linux 96.13% <ø> (ø)
OS-Windows 94.39% <ø> (+<0.01%) ⬆️
OS-macOS 95.78% <ø> (-0.01%) ⬇️
Py-3.11 95.72% <ø> (ø)
Py-3.12 95.79% <ø> (ø)
Py-3.13 95.78% <ø> (-0.01%) ⬇️
Py-3.14 95.84% <ø> (+<0.01%) ⬆️
Py-3.15 95.84% <ø> (+<0.01%) ⬆️
Py-3.15t 95.67% <ø> (-0.01%) ⬇️
Py-pypy-3.12 94.29% <ø> (-0.01%) ⬇️
VM-macos-latest 95.78% <ø> (-0.01%) ⬇️
VM-ubuntu-latest 96.13% <ø> (ø)
VM-windows-latest 94.39% <ø> (+<0.01%) ⬆️
cython-coverage 80.09% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@codspeed

codspeed Bot commented Dec 3, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

1 warning

⚠️ 50 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 99 untouched benchmarks
⏩ 86 skipped benchmarks1


Comparing patchback/backports/3.15/abbb10cd926503a61e44b93aa016d6b08407e3ec/pr-14581 (995b91f) with 3.15 (76c9712)

Open in CodSpeed

Footnotes

  1. 86 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant