Skip to content

Commit 8261522

Browse files
PeerManager: bump the read pause limit
...to make sure we can still get channel messages out after enqueuing some big gossip messages.
1 parent 356ec9b commit 8261522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/peer_handler.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ const FORWARD_INIT_SYNC_BUFFER_LIMIT_RATIO: usize = 2;
310310
/// we have fewer than this many messages in the outbound buffer again.
311311
/// We also use this as the target number of outbound gossip messages to keep in the write buffer,
312312
/// refilled as we send bytes.
313-
const OUTBOUND_BUFFER_LIMIT_READ_PAUSE: usize = 10;
313+
const OUTBOUND_BUFFER_LIMIT_READ_PAUSE: usize = 12;
314314
/// When the outbound buffer has this many messages, we'll simply skip relaying gossip messages to
315315
/// the peer.
316316
const OUTBOUND_BUFFER_LIMIT_DROP_GOSSIP: usize = OUTBOUND_BUFFER_LIMIT_READ_PAUSE * FORWARD_INIT_SYNC_BUFFER_LIMIT_RATIO;

0 commit comments

Comments
 (0)