Skip to content

Commit

Permalink
Fix lightning-net-tokio sometimes dropping messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Tibo-lg committed Jan 17, 2024
1 parent ea5de93 commit 4cd0e6a
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 4cd0e6a

Please sign in to comment.