We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b5bc05 commit 44ecfc7Copy full SHA for 44ecfc7
lightning/src/ln/peer_handler.rs
@@ -781,6 +781,8 @@ struct Peer {
781
/// Note that these messages are *not* encrypted/MAC'd, and are only serialized.
782
gossip_broadcast_buffer: VecDeque<MessageBuf>,
783
awaiting_write_event: bool,
784
+ /// Set to true if the last call to [`Descriptor::send_data`] for this peer had the
785
+ /// `should_read` flag unset, indicating we've told the driver to stop reading from this peer.
786
sent_pause_read: bool,
787
788
pending_read_buffer: Vec<u8>,
@@ -1546,7 +1548,7 @@ where
1546
1548
}
1547
1549
} else {
1550
if peer.sent_pause_read {
- force_one_write = false;
1551
+ force_one_write = true;
1552
1553
1554
while force_one_write || !peer.awaiting_write_event {
0 commit comments