Skip to content
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

Ensure Cython WebSocket parser can handle frames of 2**23 in size #9781

Merged
merged 2 commits into from
Nov 10, 2024

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Nov 10, 2024

What do these changes do?

This is technically allowed if the limit is increased high enough https://www.rfc-editor.org/rfc/rfc6455#section-5.2

However its unlikely to happen since you would need at least 9.22 exabytes of RAM assuming there is no copy of the message ever

The default max message size is 4194304 so this went unnoticed

Are there changes in behavior for the user?

no

Is it a substantial burden for the maintainers to support this?

no

This is technically allowed if the limit is increased high enough
https://www.rfc-editor.org/rfc/rfc6455#section-5.2

However its unlikely to happen since you would need 9.22 exabytes
of RAM assuming there is no copy of the message ever
@bdraco bdraco added the backport-3.11 Trigger automatic backporting to the 3.11 release branch by Patchback robot label Nov 10, 2024
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Nov 10, 2024
Copy link

codspeed-hq bot commented Nov 10, 2024

CodSpeed Performance Report

Merging #9781 will not alter performance

Comparing payload_len_long_frames (b15e5c8) with master (c5bf577)

Summary

✅ 15 untouched benchmarks

@bdraco bdraco marked this pull request as ready for review November 10, 2024 20:42
@bdraco bdraco enabled auto-merge (squash) November 10, 2024 20:42
Copy link

codecov bot commented Nov 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.68%. Comparing base (c5bf577) to head (b15e5c8).
Report is 1 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #9781   +/-   ##
=======================================
  Coverage   98.68%   98.68%           
=======================================
  Files         117      117           
  Lines       35968    35968           
  Branches     4276     4276           
=======================================
  Hits        35494    35494           
  Misses        319      319           
  Partials      155      155           
Flag Coverage Δ
CI-GHA 98.57% <ø> (ø)
OS-Linux 98.25% <ø> (ø)
OS-Windows 96.03% <ø> (ø)
OS-macOS 97.33% <ø> (+<0.01%) ⬆️
Py-3.10.11 97.18% <ø> (+<0.01%) ⬆️
Py-3.10.15 97.73% <ø> (-0.06%) ⬇️
Py-3.11.10 97.78% <ø> (ø)
Py-3.11.9 97.22% <ø> (+<0.01%) ⬆️
Py-3.12.7 98.32% <ø> (+<0.01%) ⬆️
Py-3.13.0 98.31% <ø> (ø)
Py-3.9.13 97.09% <ø> (-0.01%) ⬇️
Py-3.9.20 97.69% <ø> (ø)
Py-pypy7.3.16 97.26% <ø> (-0.01%) ⬇️
VM-macos 97.33% <ø> (+<0.01%) ⬆️
VM-ubuntu 98.25% <ø> (ø)
VM-windows 96.03% <ø> (ø)

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

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

@bdraco bdraco merged commit 8116257 into master Nov 10, 2024
39 of 40 checks passed
@bdraco bdraco deleted the payload_len_long_frames branch November 10, 2024 20:50
Copy link
Contributor

patchback bot commented Nov 10, 2024

Backport to 3.11: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.11/8116257235faa00fa3fbba106f07fba405c7b09b/pr-9781

Backported as #9782

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

patchback bot pushed a commit that referenced this pull request Nov 10, 2024
bdraco added a commit that referenced this pull request Nov 10, 2024
… handle frames of 2**23 in size (#9782)

Co-authored-by: J. Nick Koston <nick@koston.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-3.11 Trigger automatic backporting to the 3.11 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