mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-03-09 02:09:38 +01:00
Fix lightning-net-tokio sometimes dropping messages
This commit is contained in:
parent
ea5de93dd9
commit
4cd0e6a391
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