From a441b79e618c9483900b011f1e9d17e839c237db Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Fri, 20 Oct 2023 10:53:34 +1100 Subject: [PATCH] Don't differentiate between in and outbound connections --- protocols/relay/src/behaviour/handler.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/protocols/relay/src/behaviour/handler.rs b/protocols/relay/src/behaviour/handler.rs index fa05999e7be..2b22e66d21c 100644 --- a/protocols/relay/src/behaviour/handler.rs +++ b/protocols/relay/src/behaviour/handler.rs @@ -616,10 +616,6 @@ impl ConnectionHandler for Handler { } fn connection_keep_alive(&self) -> KeepAlive { - // Only inbound connections need to be kept alive longer than they are active. - if self.endpoint.is_dialer() { - return KeepAlive::No; - } match self.idle_at { Some(idle_at) if Instant::now().duration_since(idle_at) > Duration::from_secs(10) => {