-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move server socket teardown to an atexit handler #155
base: master
Are you sure you want to change the base?
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