Move server socket teardown to an atexit handler#155
Move server socket teardown to an atexit handler#155samipfjo wants to merge 3 commits intojonashaag:masterfrom
Conversation
|
I see! Thanks for the fix! I wonder what happens if you invoke We'll also have to check if the issue reported in #146 is even reproducible anymore with the fix in #91 – and then we'll also have to re-check when we make any changes resulting from the discussion in #91 |
|
I don't see any commited code referenced in #91, only discussion; am I missing something? |
|
As for calling |
|
I just reviewed the Replacing the Additionally, I'm not super well read into Python's reference counting implementation, but if it doesn't play well with |
|
Thanks for looking that stuff up! Let's wait for the resolution of #91 before we continue here. |
- Handlers registered via `atexit` do not run when an exception is thrown, so a try/finally block has been added - Add some comments to clarify behavior so readers don't have to reference the dense documentation for `socket`.
|
Welp, I had my head in the code and missed your most recent comment, so the fixes have been implemented regardless haha. |
Fix for #146