Buffer size

This commit is contained in:
ssrlive 2023-10-22 14:09:25 +08:00
parent be0652ce4c
commit 67a3242b88

View file

@ -792,8 +792,8 @@ impl<'a> TunToProxy<'a> {
#[cfg(any(target_os = "ios", target_os = "macos", target_os = "windows"))] #[cfg(any(target_os = "ios", target_os = "macos", target_os = "windows"))]
let mut socket = tcp::Socket::new( let mut socket = tcp::Socket::new(
// TODO: Look into how the buffer size affects IP header length and fragmentation // TODO: Look into how the buffer size affects IP header length and fragmentation
tcp::SocketBuffer::new(vec![0; 1024]), tcp::SocketBuffer::new(vec![0; 1024 * 2]),
tcp::SocketBuffer::new(vec![0; 1024]), tcp::SocketBuffer::new(vec![0; 1024 * 2]),
); );
socket.set_ack_delay(None); socket.set_ack_delay(None);
socket.listen(dst)?; socket.listen(dst)?;