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

feat: Don't send outbound messages that exceed the max size #3590

Merged
merged 5 commits into from
Feb 28, 2023

Conversation

mat-if
Copy link
Contributor

@mat-if mat-if commented Feb 28, 2023

Summary

This adds a check to all outbound messages to ensure they fit within the MAX_MESSAGE_SIZE. This ensures a node is not sending invalid messages, intentionally or not.

Testing Plan

Unit test

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and
what additional work is required, if any.

[ ] Yes

@mat-if mat-if requested a review from a team as a code owner February 28, 2023 17:59
This adds a check to all outbound messages to ensure they fit within the
MAX_MESSAGE_SIZE. This ensures a node is not sending invalid messages,
intentionally or not.
@mat-if mat-if merged commit 026f2d8 into network-reset Feb 28, 2023
@mat-if mat-if deleted the mat/limit-send-size branch February 28, 2023 18:57
dguenther pushed a commit that referenced this pull request Mar 8, 2023
* feat: Don't send outbound messages that exceed the max size

This adds a check to all outbound messages to ensure they fit within the
MAX_MESSAGE_SIZE. This ensures a node is not sending invalid messages,
intentionally or not.

* fix: re-add connection-specific metrics

* fix: add exhaustive enum checking for ConnectionType

* fix: lint and bind instance method

* add test for happy path
dguenther pushed a commit that referenced this pull request Mar 8, 2023
* feat: Don't send outbound messages that exceed the max size

This adds a check to all outbound messages to ensure they fit within the
MAX_MESSAGE_SIZE. This ensures a node is not sending invalid messages,
intentionally or not.

* fix: re-add connection-specific metrics

* fix: add exhaustive enum checking for ConnectionType

* fix: lint and bind instance method

* add test for happy path
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.

2 participants