-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ConnectionManager finally handle
This includes changes to the way a node behaves when its InboundGovernor dies: changed link to linkOnly (const True) to correctly propagate AsyncCancelled exceptions to the ConnectionManager and thus terminate it as well. The ConnectionManager needs to take care of closing the connection handlers of each connection in a way that does not make us go beyond the enforced timeouts. Since closing a connection is blocking we need to mask exceptions during the exception handler and since doing it sequentially can lead to waits on atomically blocks, we close each connection in parallel.
- Loading branch information
Showing
2 changed files
with
15 additions
and
9 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