Skip to content

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 [email protected]

@OlegDokuka OlegDokuka added the bug label Apr 9, 2020
@OlegDokuka OlegDokuka added this to the 1.0 milestone Apr 9, 2020
@OlegDokuka OlegDokuka requested a review from rstoyanchev April 9, 2020 20:54
@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 force-pushed the bugfix/always-reassemble branch from 7eb4882 to 0343cb0 Compare April 9, 2020 21:00
@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.

@OlegDokuka OlegDokuka force-pushed the bugfix/always-reassemble branch from 0343cb0 to 351ab63 Compare April 15, 2020 17:49
Signed-off-by: Oleh Dokuka <[email protected]>
Signed-off-by: Oleh Dokuka <[email protected]>
@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
@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

None yet

Development

Successfully merging this pull request may close these issues.

3 participants