This is an attempt to minimize extra latency when using UDP-over-TCP with WireGuard by disabling the Nagle algorithm.
In order to avoid depending directly on socket2, the TCP_NODELAY option has to be set on TcpStream as this is the only place where it is exposed by tokio.
This is an attempt to minimize extra latency when using UDP-over-TCP with WireGuard by disabling the Nagle algorithm.
In order to avoid depending directly on socket2, the TCP_NODELAY option has to be set on
TcpStream
as this is the only place where it is exposed by tokio.This change is