Skip to content

Always Reassemble Regardless of MTU #503

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 1 commit into from
May 18, 2018
Merged

Always Reassemble Regardless of MTU #503

merged 1 commit into from
May 18, 2018

Conversation

nebhale
Copy link
Member

@nebhale nebhale commented May 11, 2018

Previously, if a user configured a non-positive (<=0) MTU for fragmentation, both fragmentation and reassembly were disabled. Given that a receiver must always be prepared to reassemble fragmented frames (there is no handshake or flag that both parties must agree to) requiring fragmentation to enable reassembly was to strict. This change updates the fragmenter to handle an MTU of size 0 as an indicator that there should be no fragmentation, but still enable reassembly. The RSocketFactory was also updated to ensure that the fragmenter is always added, rather than skipping it when the MTU was zero.

Previously, if a user configured a non-positive (<=0) MTU for fragmentation,
both fragmentation and reassembly were disabled.  Given that a receiver must
always be prepared to reassemble fragmented frames (there is no handshake or
flag that both parties must agree to) requiring fragmentation to enable
reassembly was to strict.  This change updates the fragmenter to handle an MTU
of size 0 as an indicator that there should be no fragmentation, but still
enable reassembly.  The RSocketFactory was also updated to ensure that the
fragmenter is always added, rather than skipping it when the MTU was zero.

[#501]
@robertroeser robertroeser merged commit d01121f into rsocket:1.0.x May 18, 2018
@nebhale nebhale deleted the 501-always-reassemble branch May 18, 2018 16:46
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