allow peer rpc split packet, so tunnel mtu can be small (#116)

This commit is contained in:
Sijie.Sun
2024-05-16 08:18:35 +08:00
committed by GitHub
parent 58d2ec475c
commit f665de9b18
6 changed files with 223 additions and 65 deletions

View File

@@ -146,7 +146,7 @@ where
reserve_buf(
&mut self_mut.buf,
*self_mut.max_packet_size,
*self_mut.max_packet_size * 64,
*self_mut.max_packet_size * 32,
);
let cap = self_mut.buf.capacity() - self_mut.buf.len();