Skip to content

Pre-validate Payload length at stream level to avoid closing connection #768

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

Merged
merged 11 commits into from
Apr 9, 2020

Conversation

OlegDokuka
Copy link
Member

This PR provide extra payload validation in order to avoid later exception throwing if frame length exists allowed size for with disabled fragmentation

@OlegDokuka OlegDokuka added the bug label Apr 5, 2020
@OlegDokuka OlegDokuka added this to the 1.0 milestone Apr 5, 2020
@OlegDokuka OlegDokuka linked an issue Apr 5, 2020 that may be closed by this pull request
@OlegDokuka OlegDokuka changed the base branch from develop to bugfix/request_channel April 5, 2020 11:38
@OlegDokuka OlegDokuka force-pushed the bugfix/frame-length-validation branch 3 times, most recently from b21e1b9 to 1c05255 Compare April 5, 2020 13:57
@OlegDokuka OlegDokuka requested a review from rstoyanchev April 5, 2020 13:57
@OlegDokuka OlegDokuka self-assigned this Apr 5, 2020
@OlegDokuka OlegDokuka force-pushed the bugfix/request_channel branch 2 times, most recently from 5339a88 to 268e1ae Compare April 5, 2020 14:02
@OlegDokuka OlegDokuka force-pushed the bugfix/frame-length-validation branch from 1c05255 to a124aea Compare April 5, 2020 14:47
Copy link
Contributor

@rstoyanchev rstoyanchev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@OlegDokuka
Copy link
Member Author

Deferred until #736

@OlegDokuka OlegDokuka force-pushed the bugfix/frame-length-validation branch from 225c0d9 to c4f56e3 Compare April 9, 2020 12:47
@OlegDokuka OlegDokuka changed the base branch from bugfix/request_channel to develop April 9, 2020 17:07
@OlegDokuka OlegDokuka force-pushed the bugfix/frame-length-validation branch from 0ac7944 to 22ee087 Compare April 9, 2020 18:42
Signed-off-by: Oleh Dokuka <[email protected]>
@OlegDokuka OlegDokuka force-pushed the bugfix/frame-length-validation branch from 22ee087 to f8676af Compare April 9, 2020 18:48
@OlegDokuka OlegDokuka merged commit c2475c2 into develop Apr 9, 2020
@OlegDokuka OlegDokuka deleted the bugfix/frame-length-validation branch April 9, 2020 20:13
@rstoyanchev rstoyanchev modified the milestones: 1.0, 1.0.0-RC7 Apr 17, 2020
@rstoyanchev rstoyanchev changed the title Payload length validation Pre-validate Payload length at stream level to avoid closing connection Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Netty channel hangs after sending a payload of size > 16 MB
3 participants