From d1c93248bcd10bb82c6667345cbbfdc2a333bdf4 Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Mon, 13 Jan 2025 17:14:58 +0100 Subject: [PATCH] reset ping interval on the server side as well --- iroh-relay/src/server/client.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iroh-relay/src/server/client.rs b/iroh-relay/src/server/client.rs index 28dfaab332..bc9a4b4849 100644 --- a/iroh-relay/src/server/client.rs +++ b/iroh-relay/src/server/client.rs @@ -250,6 +250,8 @@ impl Actor { } maybe_frame = self.stream.next() => { self.handle_frame(maybe_frame).await.context("handle read")?; + // reset the ping interval, we just received a message + ping_interval.reset(); } // First priority, disco packets packet = self.disco_send_queue.recv() => {