-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stubborn message sending in libp2p transport
Previously, if an error occurred while sending a message in the libp2p transport, the module dropped the message and tried to reconnect. If messages were very sparse and the other side of the connection gave up receiving after some time after each incoming connection, all messages would get lost. Now, if the libp2p transport fails to send a message, it does not drop it, but instead tries to reconnect and, if reconnection succeeds, immediately re-tries to send the same message until it is sent successfully. Signed-off-by: Matej Pavlovic <[email protected]>
- Loading branch information
1 parent
fcfcb0a
commit 5e674cb
Showing
1 changed file
with
35 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters