Skip to content
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

Call server_close() on shutdown #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bdauvergne
Copy link

@bdauvergne bdauvergne commented Oct 23, 2021

Server threads take some times to shutdown, calling ThreadMixin.server_close() will wait on those threads.

It prevents ResourceWarning about an unclosed listening socket after a pytest run.

Server threads take some times to shutdown, calling
ThreadMixin.server_close() will waits on those threads.
@codeclimate
Copy link

codeclimate bot commented Oct 23, 2021

Code Climate has analyzed commit 8a42b34 and detected 0 issues on this pull request.

View more on Code Climate.

@bdauvergne bdauvergne changed the title Prevent ResourceWarning about listening socket Call server_close() on shutdown Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant