Skip to content

Add explicit WebSocket receive caps#710

Merged
ryanfowler merged 1 commit into
mainfrom
add-websocket-receive-limits
Jun 3, 2026
Merged

Add explicit WebSocket receive caps#710
ryanfowler merged 1 commit into
mainfrom
add-websocket-receive-limits

Conversation

@ryanfowler

Copy link
Copy Markdown
Owner

Summary

  • Set explicit 16 MiB frame and message limits on WebSocket receives instead of relying on tokio-tungstenite defaults.
  • Map oversized inbound messages to a clear fetch diagnostic.
  • Extend WebSocket test helpers for 64-bit frame lengths and add coverage for messages just below and above the cap.
  • Document the inbound 16 MiB limit in the WebSocket docs and CLI reference.

Testing

  • cargo fmt
  • cargo clippy --locked --all-targets --all-features -- -D warnings
  • cargo test --all-features
  • cargo test --all-features --test cli --test formatting --test grpc --test http --test network --test terminal --test update --test websocket -- --test-threads=1

@ryanfowler ryanfowler enabled auto-merge June 3, 2026 11:42
@ryanfowler ryanfowler merged commit 1403236 into main Jun 3, 2026
4 checks passed
@ryanfowler ryanfowler deleted the add-websocket-receive-limits branch June 3, 2026 11:46
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