From 30ef3ab7798fddaa8fde55497c9226e000676c87 Mon Sep 17 00:00:00 2001 From: Sofia Date: Sat, 15 Aug 2026 01:00:10 +0300 Subject: [PATCH] Speed up connecting --- src/connections.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/connections.rs b/src/connections.rs index 292b9d4..1c4c7c8 100644 --- a/src/connections.rs +++ b/src/connections.rs @@ -100,7 +100,9 @@ impl conn.last_recv_pong { + let interval = if conn.last_sent_ping > conn.last_recv_pong + && conn.state == ConnectionState::Connected + { self.config.max_ping_interval } else { self.config.ping_interval @@ -309,6 +311,8 @@ impl