Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net-sim: handle async exception in connect
Connect has to blocking actions that can throw async exceptions: * wait for connection delay * wait for connection to be accepted In the first case only async exceptions can be thrown, so we can simplify the error handling with `onException`. In the second case: * if an async exception is caught when we are waiting for the connection to be accepted we simplify remove it from the known connection. * on the other side, we let the `accept` skip over unknown connections.
- Loading branch information
Showing
1 changed file
with
48 additions
and
44 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