Skip to content

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