From 63a4beed6ec2cee090c3d5acf7bf4b300ad8dfbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Kub=C3=ADk?= Date: Tue, 26 Sep 2023 16:10:13 +0200 Subject: [PATCH 1/2] fix(client): fetch maximum datagram size after TUN read --- src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.rs b/src/client.rs index 8d24ebb..70662ce 100644 --- a/src/client.rs +++ b/src/client.rs @@ -163,12 +163,12 @@ impl QuincyClient { debug!("Started outgoing traffic task (interface -> QUIC tunnel)"); loop { + let data = read_from_interface(&mut read_interface, interface_mtu).await?; + let quinn_mtu = connection .max_datagram_size() .ok_or_else(|| anyhow!("The Quincy server does not support datagram transfer"))?; - let data = read_from_interface(&mut read_interface, interface_mtu).await?; - if data.len() > quinn_mtu { warn!( "Dropping packet of size {} due to maximum datagram size being {}", From a11744b75ed2f6ec1affc6887e3a1e9c56e3de62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Kub=C3=ADk?= Date: Tue, 26 Sep 2023 16:16:47 +0200 Subject: [PATCH 2/2] chore(cargo): update package version --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 472b881..c07e836 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -660,7 +660,7 @@ dependencies = [ [[package]] name = "quincy" -version = "0.2.3" +version = "0.2.4" dependencies = [ "anyhow", "argon2", diff --git a/Cargo.toml b/Cargo.toml index 17b1f13..f72a707 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "quincy" -version = "0.2.3" +version = "0.2.4" authors = ["Jakub KubĂ­k "] license = "MIT" description = "QUIC-based VPN"