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
+1 -1
View File
@@ -12,7 +12,7 @@ use super::{
IpVersion, Tunnel, TunnelError, TunnelListener,
};
const TCP_MTU_BYTES: usize = 64 * 1024;
const TCP_MTU_BYTES: usize = 2000;
#[derive(Debug)]
pub struct TcpTunnelListener {