Skip to content

Limit HTTP size checks to handshake headers - #103

Closed
OskarEichler wants to merge 1 commit into
faye:mainfrom
OskarEichler:audit/limit-handshake-header-size
Closed

Limit HTTP size checks to handshake headers#103
OskarEichler wants to merge 1 commit into
faye:mainfrom
OskarEichler:audit/limit-handshake-header-size

Conversation

@OskarEichler

Copy link
Copy Markdown

The HTTP parser currently keeps applying its 32 KiB request guard after the blank line, so a valid handshake and a large first WebSocket frame delivered in one read are rejected. Count only start-line and header bytes; body bytes remain available through rack.input. The full 196-example suite passes on Ruby 4.0.6 and Ruby 3.2.11, as do the cumulative protocol model and native builds.

@OskarEichler

Copy link
Copy Markdown
Author

Closing this because the changes were produced with assistance from an LLM agent, which the Faye project does not accept. Sorry for the noise.

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