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 cd0541b commit c137255Copy full SHA for c137255
lightning-net-tokio/src/lib.rs
@@ -443,6 +443,9 @@ impl peer_handler::SocketDescriptor for SocketDescriptor {
443
// pause read given we're now waiting on the remote end to ACK (and in
444
// accordance with the send_data() docs).
445
us.read_paused = true;
446
+ // Further, to avoid any current pending read causing a `read_event` call, wake
447
+ // up the read_waker and restart its loop.
448
+ let _ = us.read_waker.try_send(());
449
return written_len;
450
},
451
}
0 commit comments