summaryrefslogtreecommitdiffhomepage
path: root/mullvad-masque-proxy/tests/proxy.rs
diff options
context:
space:
mode:
authorJoakim Hulthe <joakim.hulthe@mullvad.net>2025-09-15 15:31:54 +0200
committerJoakim Hulthe <joakim.hulthe@mullvad.net>2025-11-04 07:39:18 +0100
commit529f6e710c705c975ef6fdef11e0d9aa53391def (patch)
treeed01d6b3c5e16086b4a5110bb220a08c4dfdf1d7 /mullvad-masque-proxy/tests/proxy.rs
parent7edb269148b63b4ebb7ca4575e406a3abeb65557 (diff)
downloadmullvadvpn-masque-proxy-reduce-lock-contention.tar.xz
mullvadvpn-masque-proxy-reduce-lock-contention.zip
Do not set max_udp_payload_size in masquemasque-proxy-reduce-lock-contention
There is no point in setting max_udp_payload_size to limit the size of packets we can receive, because because the relay will do path-MTU detection anyway. There is also no point in limiting the size of packets that we send, to max_udp_payload_size, since quinn does path-MTU detection which we must respect regardless. We were basing the value of max_udp_payload_size on the link-MTU (not path-MTU), and not accounting for whether that value should change over the lifetime of the connection. The link-MTU is mostly uninteresting, because it is always `>= 1500` unless the user has changed it, which most people don't. We do technically still set `max_udp_payload_size`, because the server requires it, but we always set it to the default value of `1500 - IP_HEADER`
Diffstat (limited to 'mullvad-masque-proxy/tests/proxy.rs')
-rw-r--r--mullvad-masque-proxy/tests/proxy.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/mullvad-masque-proxy/tests/proxy.rs b/mullvad-masque-proxy/tests/proxy.rs
index b8681166c1..03da76f572 100644
--- a/mullvad-masque-proxy/tests/proxy.rs
+++ b/mullvad-masque-proxy/tests/proxy.rs
@@ -178,7 +178,6 @@ async fn setup_masque(mtu: u16) -> anyhow::Result<(UdpSocket, UdpSocket)> {
.server_addr(masque_server_addr)
.server_host(HOST.to_owned())
.target_addr(target_udp_addr)
- .mtu(mtu)
.idle_timeout(Some(Duration::from_secs(10)))
.auth_header(Some("Bearer test".to_owned()))
.build();