Skip to content

[PR #14581/abbb10cd backport][3.14] Upgrade to llhttp 9.5.0 - #14583

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

patchback[bot] wants to merge 1 commit into
3.14from
patchback/backports/3.14/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
  • Verified the backport matches the master commit exactly: same three files (changelog, THREAT_MODEL.md edit, llhttp submodule pointer) and no dropped code changes.
  • Read the full llhttp 9.3.1 to 9.5.0 parser diff: a stricter bare-LF request-line rejection, RFC-compliant whitespace handling for Transfer-Encoding and Connection values, guarded SSE4.2 runtime dispatch, and header-generation cleanup; no framing check was weakened and Transfer-Encoding plus Content-Length is still rejected.
  • Traced the new strictness path through the Cython wrapper: request parsing stays strict, the new CR_EXPECTED error falls through to BadHttpMessage, and the response parser re-enables the lenient flag so client behavior is unchanged.
  • Confirmed aiohttp's build compiles llhttp directly without the new LLHTTP_SSE42_DISPATCH define, so the SSE4.2 runtime dispatch stays on the baseline path with no unresolved symbol.
  • Confirmed the pyx method-name table absorbs the new HTTP_ALL_METHOD_MAP changes safely via designated initializers with an import-time NULL check.

@greptile-apps

greptile-apps Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 Tier: apexRetriggerView in Greptile

[Medium impact] This PR appears safe to merge; no actionable issues were found.

Reviews (1) · Last reviewed commit: "Upgrade to llhttp 9.5.0 (#14581)" · Reviewed by Greptile

@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.52%. Comparing base (4b0a89e) to head (c337972).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             3.14   #14583   +/-   ##
=======================================
  Coverage   96.52%   96.52%           
=======================================
  Files         161      161           
  Lines       54847    54847           
  Branches     2966     2966           
=======================================
+ Hits        52941    52943    +2     
+ Misses       1737     1736    -1     
+ Partials      169      168    -1     
Flag Coverage Δ
Autobahn 21.13% <ø> (ø)
CI-GHA 96.40% <ø> (+<0.01%) ⬆️
OS-Linux 96.20% <ø> (+<0.01%) ⬆️
OS-Windows 94.33% <ø> (-0.01%) ⬇️
OS-macOS 95.75% <ø> (+0.05%) ⬆️
Py-3.11 96.11% <ø> (+0.01%) ⬆️
Py-3.12 96.20% <ø> (+<0.01%) ⬆️
Py-3.13 96.18% <ø> (ø)
Py-3.14 96.23% <ø> (+<0.01%) ⬆️
Py-3.14t 95.64% <ø> (-0.01%) ⬇️
Py-pypy-3.12 94.46% <ø> (+<0.01%) ⬆️
VM-macos 95.75% <ø> (+0.05%) ⬆️
VM-ubuntu 96.20% <ø> (+<0.01%) ⬆️
VM-windows 94.33% <ø> (-0.01%) ⬇️
cython-coverage 80.28% <ø> (-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

⚠️ 41 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

✅ 87 untouched benchmarks
⏩ 7 skipped benchmarks1


Comparing patchback/backports/3.14/abbb10cd926503a61e44b93aa016d6b08407e3ec/pr-14581 (c337972) with 3.14 (4b0a89e)

Open in CodSpeed

Footnotes

  1. 7 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