We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 330e75f commit b69b55bCopy full SHA for b69b55b
rsocket/src/x/client.rs
@@ -49,7 +49,7 @@ where
49
}
50
51
pub fn fragment(mut self, mtu: usize) -> Self {
52
- if mtu < transport::MIN_MTU {
+ if mtu > 0 && mtu < transport::MIN_MTU {
53
panic!("invalid fragment mtu: at least {}!", transport::MIN_MTU)
54
55
self.mtu = mtu;
rsocket/src/x/server.rs
@@ -38,7 +38,7 @@ where
38
39
40
41
42
43
44
0 commit comments