-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* mirage: avoid an assert false, properly return an error * provide close and shutdown in Awa_mirage * simplify - a shutdown \`read_write is a close * mirage: preserve half-closed connections, and deal with them properly * mirage: avoid assertions * address @reynir review - and use inject_state * mirage: revise close and shutdown first to the ssh teardown, then do the underlying flow teardown * shutdown: don't shutdown the flow unless closed If we are in `Read_closed we may still want to read channel-close and when we are in `Write_closed we may still want to write channel-close. * mirage: set closed earlier in close(); also remove TODO comment * mirage: add comment about states and why errors may occur that we ignore (thanks to @dinosaure) * minor tweaks * shutdown: if in closed/error state, call close on the underlying flow nevertheless --------- Co-authored-by: Reynir Björnsson <[email protected]> Co-authored-by: Romain Calascibetta <[email protected]>
- Loading branch information
1 parent
389c1f3
commit 7c66137
Showing
5 changed files
with
135 additions
and
42 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
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
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