Skip to content

Commit

Permalink
fix: Increase PING_TIMER to 20 seconds
Browse files Browse the repository at this point in the history
This value was chosen sort of arbitrarily acccording to
2d3a210.

By doubling this timeout we hope to keep the connection alive when
performing the very heavy and chatty DLC-related protocols.
  • Loading branch information
luckysori committed Aug 30, 2023
1 parent 420d961 commit 3b69cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightning-background-processor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3b69cec

Please sign in to comment.