summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <faern@faern.net>2023-02-27 16:51:42 +0100
committerLinus Färnstrand <linus@mullvad.net>2023-02-28 16:04:37 +0100
commit59287a6fe6bc8010cb057628b6dc4885dee06344 (patch)
tree9b9ebf008b02e4f2a504ce5f436b965664fc6d5f
parentb9bd3d7dcfe43853677911ef6729f32a127aa059 (diff)
downloadmullvadvpn-59287a6fe6bc8010cb057628b6dc4885dee06344.tar.xz
mullvadvpn-59287a6fe6bc8010cb057628b6dc4885dee06344.zip
Enable TCP_NODELAY on the WireGuard over TCP socket
-rw-r--r--tunnel-obfuscation/src/udp2tcp.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tunnel-obfuscation/src/udp2tcp.rs b/tunnel-obfuscation/src/udp2tcp.rs
index 386236b446..0eada9b928 100644
--- a/tunnel-obfuscation/src/udp2tcp.rs
+++ b/tunnel-obfuscation/src/udp2tcp.rs
@@ -49,6 +49,8 @@ impl Udp2Tcp {
TcpOptions {
#[cfg(target_os = "linux")]
fwmark: settings.fwmark,
+ // Disables the Nagle algorithm on the TCP socket. Improves performance
+ nodelay: true,
..TcpOptions::default()
},
)