-
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-4534] Use cancellation context in gossip
In gossip when a peer p closes a connection to another peer q that it initiated connection with, it simply closes the gRPC stream, but this doesn't always make the Recv() method to return and might result in a stuck goroutine. The solution would be to use a cancellation context when priming the stream object. Change-Id: I6632333b09559b70670787418788674452749f0e Signed-off-by: Yacov Manevich <[email protected]>
- Loading branch information
Showing
2 changed files
with
9 additions
and
1 deletion.
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