Skip to content

Limit buffered state - #244

Merged
josephnoir merged 5 commits into
apple:mainfrom
josephnoir:limit-state
Jul 20, 2026
Merged

josephnoir merged 5 commits into
apple:mainfrom
josephnoir:limit-state

Conversation

@josephnoir

Copy link
Copy Markdown
Contributor

Motivation

Misbehaving peers might send unexpectedly large messages. This PR introduces limits to terminate the connection early.

Modifications

  • Limit version banner and preamble lengths.
  • Limit plaintext packet sizes.
  • Limit encrypted packet sizes.

Result

Improve robustness when interacting with misbehaving peers.

Motivation:

Misbehaving peers might send unexpectedly large messages. This PR
introduces limits to terminate the connection early.

Modifications:

* Limit version banner and preamble lengths.
* Limit plaintext packet sizes.
* Limit encrypted packet sizes.

Result:

Improve robustness when interacting with misbehaving peers.
@josephnoir josephnoir added the 🔨 semver/patch No public API change. label Jul 20, 2026
@josephnoir
josephnoir merged commit 6d576c8 into apple:main Jul 20, 2026
41 of 43 checks passed
@josephnoir
josephnoir deleted the limit-state branch July 28, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants