Skip to content

Upgrade to llhttp 9.5.0 - #14581

Merged
Dreamsorcerer merged 3 commits into
masterfrom
llhttp-950
Dec 3, 2026
Merged

Dreamsorcerer merged 3 commits into
masterfrom
llhttp-950

Conversation

@Dreamsorcerer

Copy link
Copy Markdown
Member

No description provided.

@Dreamsorcerer Dreamsorcerer added the backport-3.14 Trigger automatic backporting to the 3.14 release branch by Patchback robot label Dec 3, 2026
@Dreamsorcerer Dreamsorcerer added the backport-3.15 Trigger automatic backporting to the 3.15 release branch by Patchback robot label Dec 3, 2026
@pyba-chronographer pyba-chronographer Bot added the bot:chronographer:provided There is a change note present in this PR label 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 diff is a docs change plus a llhttp submodule bump from 9.3.1 to 9.5.0; every parser change in the range was reviewed at the state-machine level (the generated C is not checked in, so it was not compiled locally).
  • A lone LF ending the request line is now rejected by the strict server parser, since aiohttp's request parser sets no llhttp lenient flags — this closes a bare-LF request-line acceptance instead of opening one.
  • Connection: close followed by whitespace and a token now still marks the connection for closing, which is the fail-safe direction, and tokens like closeX still do not set the close flag.
  • A tab after chunked in Transfer-Encoding now behaves like the already-accepted space, matching aiohttp's own Python parser, and Transfer-Encoding plus Content-Length is still rejected.
  • The SSE4.2 fast path is gated on a build macro aiohttp never defines, so aiohttp keeps the baseline llhttp_execute, and the llhttp_method_name NULL-return change is unreachable because aiohttp builds its own method table.

@greptile-apps

greptile-apps Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 Tier: apexRetriggerView in Greptile

[Medium impact] The PR appears safe to merge.

Reviews (2) · Last reviewed commit: "Update THREAT_MODEL.md" · Reviewed by Greptile

Comment thread vendor/llhttp Resolved
@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 99.13%. Comparing base (c42ee5b) to head (4aa4f7a).
⚠️ Report is 8 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #14581    +/-   ##
========================================
  Coverage   99.13%   99.13%            
========================================
  Files         135      135            
  Lines       54451    54630   +179     
  Branches     2799     2808     +9     
========================================
+ Hits        53979    54158   +179     
  Misses        357      357            
  Partials      115      115            
Flag Coverage Δ
Autobahn 21.53% <ø> (-0.04%) ⬇️
CI-GHA 99.06% <ø> (+<0.01%) ⬆️
OS-Linux 98.75% <ø> (+<0.01%) ⬆️
OS-Windows 97.52% <ø> (+<0.01%) ⬆️
OS-macOS 98.38% <ø> (+0.01%) ⬆️
Py-3.11 98.32% <ø> (+<0.01%) ⬆️
Py-3.12 98.40% <ø> (-0.01%) ⬇️
Py-3.13 98.39% <ø> (+<0.01%) ⬆️
Py-3.14 98.45% <ø> (+0.01%) ⬆️
Py-3.15 98.45% <ø> (-0.01%) ⬇️
Py-3.15t 98.30% <ø> (+<0.01%) ⬆️
Py-pypy-3.12 97.00% <ø> (+<0.01%) ⬆️
VM-macos-latest 98.38% <ø> (+0.01%) ⬆️
VM-ubuntu-latest 98.75% <ø> (+<0.01%) ⬆️
VM-windows-latest 97.52% <ø> (+<0.01%) ⬆️
cython-coverage 84.04% <ø> (+0.03%) ⬆️

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

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

✅ 102 untouched benchmarks
⏩ 83 skipped benchmarks1


Comparing llhttp-950 (4aa4f7a) with master (b5acd43)

Open in CodSpeed

Footnotes

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

@Dreamsorcerer
Dreamsorcerer merged commit abbb10c into master Dec 3, 2026
52 checks passed
@Dreamsorcerer
Dreamsorcerer deleted the llhttp-950 branch December 3, 2026 18:23
@patchback

patchback Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Backport to 3.15: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.15/abbb10cd926503a61e44b93aa016d6b08407e3ec/pr-14581

Backported as #14582

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@patchback

patchback Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Backport to 3.14: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.14/abbb10cd926503a61e44b93aa016d6b08407e3ec/pr-14581

Backported as #14583

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

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

Labels

backport-3.14 Trigger automatic backporting to the 3.14 release branch by Patchback robot backport-3.15 Trigger automatic backporting to the 3.15 release branch by Patchback robot bot:chronographer:provided There is a change note present in this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant