mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-01-19 05:43:55 +01:00
Merge pull request #2832 from p2pderivatives/fix-ln-net-tokio-dropping-messages
Fix lightning-net-tokio sometimes dropping messages
This commit is contained in:
commit
a97f945607
@ -502,6 +502,9 @@ impl peer_handler::SocketDescriptor for SocketDescriptor {
|
||||
written_len += res;
|
||||
if written_len == data.len() { return written_len; }
|
||||
},
|
||||
Err(ref e) if e.kind() == std::io::ErrorKind::WouldBlock => {
|
||||
continue;
|
||||
}
|
||||
Err(_) => return written_len,
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user