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

Enforces reassembly of fragments to always be in enabled #775

Merged
merged 4 commits into from Apr 15, 2020

Conversation

OlegDokuka
Copy link
Member

As of now, we have a bug in RSocket, related to the fact that one side may not directly setup fragmentation but another may.
Such miss-setup leads to the fact that one side is not able to reassemble back fragmented payload.

This PR provide fragment reassembling enforcement so every duplex connection is wrapped by a separate ReassemblyDuplexConnection which takes care of reassembling back fragments even if fragmentation is not enabled

Signed-off-by: Oleh Dokuka shadowgun@i.ua

@OlegDokuka OlegDokuka added the bug label Apr 9, 2020
@OlegDokuka OlegDokuka added this to the 1.0 milestone Apr 9, 2020
@OlegDokuka OlegDokuka self-assigned this Apr 9, 2020
@OlegDokuka OlegDokuka changed the title [Bugfix] Enforces reassembly on the receiver side [Bugfix] Allways enable Reassembly Apr 9, 2020
@OlegDokuka OlegDokuka changed the title [Bugfix] Allways enable Reassembly [Bugfix] Enforces reassembly to always be enabled Apr 9, 2020
@OlegDokuka OlegDokuka added this to In progress in Core Apr 9, 2020
@OlegDokuka
Copy link
Member Author

@rstoyanchev, in short, I moved reassembly logic from FragmentationDuplexConnection so, for now, Fragmentation does exactly fragmentation and now we have ReassemblyDuplexConnection which accompanies every other DuplexConnection in the know transports.

Unfortunately, I'm not seeing simple way (without braking API) to built-in reassembly logic directly into the DuplexConnection interface.

Any suggestions are welcome

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.

Looks good, just a suggestion to make ReassemblyDuplexConnection a base class.

Signed-off-by: Oleh Dokuka <shadowgun@i.ua>
…Connection

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 OlegDokuka merged commit 5d3faef into develop Apr 15, 2020
@OlegDokuka OlegDokuka deleted the bugfix/always-reassemble branch April 15, 2020 18:28
@rstoyanchev rstoyanchev modified the milestones: 1.0, 1.0.0-RC7 Apr 17, 2020
@OlegDokuka OlegDokuka moved this from In progress to Done in Core Apr 23, 2020
@rstoyanchev rstoyanchev changed the title [Bugfix] Enforces reassembly to always be enabled Enforces reassembly of fragments to always be in enabled Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Core
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants