mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue