Skip to content

Commit

Permalink
Merge pull request #2832 from p2pderivatives/fix-ln-net-tokio-droppin…
Browse files Browse the repository at this point in the history
…g-messages

Fix lightning-net-tokio sometimes dropping messages
  • Loading branch information
TheBlueMatt authored Jan 17, 2024
2 parents 53f2e2e + 4cd0e6a commit a97f945
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lightning-net-tokio/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
},
Expand Down

0 comments on commit a97f945

Please sign in to comment.