-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sort out semantics of closed async sockets.
* Further requests to close will have no effect, so close of an async socket is idempotent. Useful when people are doing timeout things that race with normal close. Previously could bring down the VM or even cause SEGV. * A write on a closed socket will properly signal the error through the callback, NOT bring down the VM now. * A read on a closed socket will behave like a read that started just before the socket was closed - that is, it will signal completion. On the Perl 6 side, this will be like a Supply that completes right away in both cases. Again, this avoids races. Previously, this could fail in all kinds of ways, potentially with SEGV though I didn't manage to provoke it.
- Loading branch information
Showing
1 changed file
with
75 additions
and
17 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