Merge pull request #2832 from p2pderivatives/fix-ln-net-tokio-dropping-messages

Fix lightning-net-tokio sometimes dropping messages
This commit is contained in:
Matt Corallo 2024-01-17 00:37:09 +00:00 committed by GitHub
commit a97f945607
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,
}
},