summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJoakim Hulthe <joakim.hulthe@mullvad.net>2025-09-02 15:31:04 +0200
committerJoakim Hulthe <joakim.hulthe@mullvad.net>2025-09-02 15:31:04 +0200
commit6f2e64da12861cc02512f75b35084209bf8655de (patch)
tree213bf7704fb4b741873269c97c5fe5be0e54ba9b
parente2fb69137df7c565f84e09b8b8038d1c00546ad1 (diff)
downloadmullvadvpn-6f2e64da12861cc02512f75b35084209bf8655de.tar.xz
mullvadvpn-6f2e64da12861cc02512f75b35084209bf8655de.zip
Log if packet reassembly fails
-rw-r--r--mullvad-masque-proxy/src/client/mod.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/mullvad-masque-proxy/src/client/mod.rs b/mullvad-masque-proxy/src/client/mod.rs
index 32983ccdef..8ab79ec715 100644
--- a/mullvad-masque-proxy/src/client/mod.rs
+++ b/mullvad-masque-proxy/src/client/mod.rs
@@ -573,7 +573,11 @@ async fn client_socket_tx_task(
send(reassembled_payload.chunk()).await?;
}
Ok(DefragReceived::Fragment) => stats.rx(original_payload_len, true),
- Err(_) => (),
+ Err(e) => {
+ use log::Level::*;
+ let level = if cfg!(debug_assertions) { Debug } else { Trace };
+ log::log!(level, "Packet reassembly failed: {e}");
+ }
}
}