forked from hashicorp/nomad
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
InmemTransport: respect timeout when writing
InmemTransport would block indefinitely when trying to make an RPC to a peer who has already shut down. This was causing our tests using it to hang sometimes when stopping raft nodes - guarding the send with a timeout (like there is on the receive) resolves the problem.
- Loading branch information
1 parent
d9475b5
commit 834fca2
Showing
2 changed files
with
72 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