-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-4535] Use deadlines/timeouts in gossip Probing
** Post V1.0 item ** In gossip we have an RPC call that is used to probe whether a remote peer is responsive or not: rpc Ping (Empty) returns (Empty) {} The implementation of the method doesn't do anything and immediately returns. It is used to probe remote peers in 2 situations: Handshake method (when probing anchor / bootstrap peers ) When connecting to a remote peer for long term connection Used by the discovery layer to probe dead peers to see if they have come back alive A malicious peer can implement his own implementation of the server-side Ping() method that blocks indefinitely and this would slow down the peer and waste resources for it. Therefore I suggest that we use timeouts when invoking the Ping RPC call in order to defend against this. Change-Id: Iec5c632019eea3310e789c11b793ab7d8ff00832 Signed-off-by: Yacov Manevich <yacovm@il.ibm.com>
- Loading branch information
Showing
2 changed files
with
63 additions
and
3 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
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