Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Close server socket handle when client side closes
We've so far relied on the user explicitly doing the `close` call, but if they forget, the result is a server where new requests just pile up due to the unclosed handles. Since `.close` is already idempotent (you can call it many times on an async socket handle without problem), we can simply close the handle when notified that the client side has closed without any bad effects on existing code. Meanwhile, code that doesn't bother will simply work. Change inspired by issue reported at rakudo/rakudo#1775.
- Loading branch information
Showing
1 changed file
with
26 additions
and
23 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