From b56bcfb4b01ee9f8f095c31833c9af6752c9fd64 Mon Sep 17 00:00:00 2001 From: sky96111 Date: Sat, 28 Feb 2026 18:26:19 +0800 Subject: [PATCH] fix: increase websocket peer connection timeout to 20 seconds (#1939) - Add ws/wss protocols to long timeout list --- easytier/src/connector/manual.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/easytier/src/connector/manual.rs b/easytier/src/connector/manual.rs index 8b272fe0..98bbc1a4 100644 --- a/easytier/src/connector/manual.rs +++ b/easytier/src/connector/manual.rs @@ -315,10 +315,12 @@ impl ManualConnectorManager { for ip_version in ip_versions { let use_long_timeout = dead_url.scheme() == "http" || dead_url.scheme() == "https" + || dead_url.scheme() == "ws" + || dead_url.scheme() == "wss" || dead_url.scheme() == "txt" || dead_url.scheme() == "srv"; let ret = timeout( - // allow http connector to wait longer + // allow http/websocket connector to wait longer std::time::Duration::from_secs(if use_long_timeout { 20 } else { 2 }), Self::conn_reconnect_with_ip_version( data.clone(),