PeerManager: bump the read pause limit
authorValentine Wallace <vwallace@protonmail.com>
Tue, 16 Aug 2022 18:33:10 +0000 (14:33 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Fri, 26 Aug 2022 23:03:05 +0000 (19:03 -0400)
...to make sure we can still get channel messages out after enqueuing some big gossip messages.

lightning/src/ln/peer_handler.rs

index 58c4f11f02c7122f344ddff1fe42c9c12a3fd618..6da0bae27d0f0f00be701c31666976edebf11552 100644 (file)
@@ -310,7 +310,7 @@ const FORWARD_INIT_SYNC_BUFFER_LIMIT_RATIO: usize = 2;
 /// we have fewer than this many messages in the outbound buffer again.
 /// We also use this as the target number of outbound gossip messages to keep in the write buffer,
 /// refilled as we send bytes.
-const OUTBOUND_BUFFER_LIMIT_READ_PAUSE: usize = 10;
+const OUTBOUND_BUFFER_LIMIT_READ_PAUSE: usize = 12;
 /// When the outbound buffer has this many messages, we'll simply skip relaying gossip messages to
 /// the peer.
 const OUTBOUND_BUFFER_LIMIT_DROP_GOSSIP: usize = OUTBOUND_BUFFER_LIMIT_READ_PAUSE * FORWARD_INIT_SYNC_BUFFER_LIMIT_RATIO;