From 63821e56bccf12b59e0ddd3173629835e51a0406 Mon Sep 17 00:00:00 2001 From: "Sijie.Sun" Date: Tue, 8 Oct 2024 22:01:15 +0800 Subject: [PATCH] fix udp buffer size, avoid packet loss (#399) also bump version to 2.0.2 --- .github/workflows/release.yml | 2 +- Cargo.lock | 4 ++-- easytier-gui/package.json | 2 +- easytier-gui/src-tauri/Cargo.toml | 2 +- easytier-gui/src-tauri/tauri.conf.json | 2 +- easytier/Cargo.toml | 2 +- easytier/src/tunnel/udp.rs | 8 ++++---- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3df09a2..2f20ee6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ on: version: description: 'Version for this release' type: string - default: 'v2.0.1' + default: 'v2.0.2' required: true make_latest: description: 'Mark this release as latest' diff --git a/Cargo.lock b/Cargo.lock index aa73b91..9a0d45d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1539,7 +1539,7 @@ checksum = "0d6ef0072f8a535281e4876be788938b528e9a1d43900b82c2569af7da799125" [[package]] name = "easytier" -version = "2.0.1" +version = "2.0.2" dependencies = [ "aes-gcm", "anyhow", @@ -1631,7 +1631,7 @@ dependencies = [ [[package]] name = "easytier-gui" -version = "2.0.1" +version = "2.0.2" dependencies = [ "anyhow", "chrono", diff --git a/easytier-gui/package.json b/easytier-gui/package.json index 8c2638f..5188fda 100644 --- a/easytier-gui/package.json +++ b/easytier-gui/package.json @@ -1,7 +1,7 @@ { "name": "easytier-gui", "type": "module", - "version": "2.0.1", + "version": "2.0.2", "private": true, "scripts": { "dev": "vite", diff --git a/easytier-gui/src-tauri/Cargo.toml b/easytier-gui/src-tauri/Cargo.toml index f29dc6c..70527aa 100644 --- a/easytier-gui/src-tauri/Cargo.toml +++ b/easytier-gui/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "easytier-gui" -version = "2.0.1" +version = "2.0.2" description = "EasyTier GUI" authors = ["you"] edition = "2021" diff --git a/easytier-gui/src-tauri/tauri.conf.json b/easytier-gui/src-tauri/tauri.conf.json index 5aa2f2d..1e7c623 100644 --- a/easytier-gui/src-tauri/tauri.conf.json +++ b/easytier-gui/src-tauri/tauri.conf.json @@ -17,7 +17,7 @@ "createUpdaterArtifacts": false }, "productName": "easytier-gui", - "version": "2.0.1", + "version": "2.0.2", "identifier": "com.kkrainbow.easytier", "plugins": {}, "app": { diff --git a/easytier/Cargo.toml b/easytier/Cargo.toml index 98b6a89..b700f21 100644 --- a/easytier/Cargo.toml +++ b/easytier/Cargo.toml @@ -3,7 +3,7 @@ name = "easytier" description = "A full meshed p2p VPN, connecting all your devices in one network with one command." homepage = "https://github.com/EasyTier/EasyTier" repository = "https://github.com/EasyTier/EasyTier" -version = "2.0.1" +version = "2.0.2" edition = "2021" authors = ["kkrainbow"] keywords = ["vpn", "p2p", "network", "easytier"] diff --git a/easytier/src/tunnel/udp.rs b/easytier/src/tunnel/udp.rs index 5ba715a..1c70f8d 100644 --- a/easytier/src/tunnel/udp.rs +++ b/easytier/src/tunnel/udp.rs @@ -296,8 +296,8 @@ impl UdpTunnelListenerData { return; } - let ring_for_send_udp = Arc::new(RingTunnel::new(64)); - let ring_for_recv_udp = Arc::new(RingTunnel::new(64)); + let ring_for_send_udp = Arc::new(RingTunnel::new(128)); + let ring_for_recv_udp = Arc::new(RingTunnel::new(128)); tracing::debug!( ?ring_for_send_udp, ?ring_for_recv_udp, @@ -559,8 +559,8 @@ impl UdpTunnelConnector { dst_addr: SocketAddr, conn_id: u32, ) -> Result, super::TunnelError> { - let ring_for_send_udp = Arc::new(RingTunnel::new(32)); - let ring_for_recv_udp = Arc::new(RingTunnel::new(32)); + let ring_for_send_udp = Arc::new(RingTunnel::new(128)); + let ring_for_recv_udp = Arc::new(RingTunnel::new(128)); tracing::debug!( ?ring_for_send_udp, ?ring_for_recv_udp,