From 3b69cecf0db70ae900e85569fe78d8573a5b01b0 Mon Sep 17 00:00:00 2001 From: Lucas Soriano del Pino Date: Wed, 30 Aug 2023 20:30:25 +1000 Subject: [PATCH] fix: Increase PING_TIMER to 20 seconds This value was chosen sort of arbitrarily acccording to 2d3a2108979adca6b7632e2d59c10e4b131e8bf4. By doubling this timeout we hope to keep the connection alive when performing the very heavy and chatty DLC-related protocols. --- lightning-background-processor/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning-background-processor/src/lib.rs b/lightning-background-processor/src/lib.rs index 6682cb9ce79..cd9ae33eae3 100644 --- a/lightning-background-processor/src/lib.rs +++ b/lightning-background-processor/src/lib.rs @@ -94,7 +94,7 @@ const FRESHNESS_TIMER: u64 = 60; const FRESHNESS_TIMER: u64 = 1; #[cfg(all(not(test), not(debug_assertions)))] -const PING_TIMER: u64 = 10; +const PING_TIMER: u64 = 20; /// Signature operations take a lot longer without compiler optimisations. /// Increasing the ping timer allows for this but slower devices will be disconnected if the /// timeout is reached.