mullvad / udp-over-tcp

Proxy UDP traffic over a TCP stream
Apache License 2.0
377 stars 61 forks source link

Add an option to enable TCP_NODELAY #39

Closed gregoire-mullvad closed 1 year ago

gregoire-mullvad commented 1 year ago

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 Reviewable