Skip to content

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

Merged
OlegDokuka merged 11 commits into
developfrom
bugfix/frame-length-validation
Apr 9, 2020
Merged

Pre-validate Payload length at stream level to avoid closing connection #768
OlegDokuka merged 11 commits into
developfrom
bugfix/frame-length-validation

Conversation

@OlegDokuka

Copy link
Copy Markdown
Member

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

@OlegDokukaOlegDokuka added this to the 1.0 milestone Apr 5, 2020
@OlegDokukaOlegDokuka 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_channelApril 5, 2020 11:38
@OlegDokuka
OlegDokukaforce-pushed the bugfix/frame-length-validation branch 3 times, most recently from b21e1b9 to 1c05255CompareApril 5, 2020 13:57
@OlegDokukaOlegDokuka self-assigned this Apr 5, 2020
@OlegDokuka
OlegDokukaforce-pushed the bugfix/request_channel branch 2 times, most recently from 5339a88 to 268e1aeCompareApril 5, 2020 14:02
@OlegDokuka
OlegDokukaforce-pushed the bugfix/frame-length-validation branch from 1c05255 to a124aeaCompareApril 5, 2020 14:47
Comment threadrsocket-core/src/main/java/io/rsocket/fragmentation/FragmentationUtils.java Outdated
Comment threadrsocket-core/src/main/java/io/rsocket/RSocketRequester.java Outdated
Comment threadrsocket-core/src/main/java/io/rsocket/fragmentation/FragmentationUtils.java Outdated
Comment threadrsocket-core/src/main/java/io/rsocket/RSocketRequester.java Outdated

@rstoyanchevrstoyanchev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@OlegDokuka

Copy link
Copy Markdown
MemberAuthor

Deferred until #736

@OlegDokuka
OlegDokukaforce-pushed the bugfix/frame-length-validation branch from 225c0d9 to c4f56e3CompareApril 9, 2020 12:47
@OlegDokuka
OlegDokuka changed the base branch from bugfix/request_channel to developApril 9, 2020 17:07
Signed-off-by: Oleh Dokuka <shadowgun@i.ua>
Signed-off-by: Oleh Dokuka <shadowgun@i.ua>
Signed-off-by: Oleh Dokuka <shadowgun@i.ua>
Signed-off-by: Oleh Dokuka <shadowgun@i.ua>
Signed-off-by: Oleh Dokuka <shadowgun@i.ua>
Signed-off-by: Oleh Dokuka <shadowgun@i.ua>
Signed-off-by: Oleh Dokuka <shadowgun@i.ua>
Signed-off-by: Oleh Dokuka <shadowgun@i.ua>
Signed-off-by: Oleh Dokuka <shadowgun@i.ua>
@OlegDokuka
OlegDokukaforce-pushed the bugfix/frame-length-validation branch from 0ac7944 to 22ee087CompareApril 9, 2020 18:42
Signed-off-by: Oleh Dokuka <shadowgun@i.ua>
@OlegDokuka
OlegDokukaforce-pushed the bugfix/frame-length-validation branch from 22ee087 to f8676afCompareApril 9, 2020 18:48
@OlegDokuka
OlegDokuka merged commit c2475c2 into developApr 9, 2020
@OlegDokuka
OlegDokuka deleted the bugfix/frame-length-validation branch April 9, 2020 20:13
@rstoyanchevrstoyanchev modified the milestones: 1.0, 1.0.0-RC7Apr 17, 2020
@rstoyanchevrstoyanchev changed the title Payload length validationPre-validate Payload length at stream level to avoid closing connection Apr 27, 2020
Sign up for freeto 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

@OlegDokuka@rstoyanchev@simonbasle