Skip to content

Override serve_forever to use a pipe and select #53407

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

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

Conversation

gsnedders
Copy link
Member

This overrides the superclass implementation to use a pipe to process
shutdown requests, avoiding waiting the poll_interval before shutting
down.

This saves up to approximately half a second when running tests, but
much more dramatically saves that much time per unit test we have
for the server.

This overrides the superclass implementation to use a pipe to process
shutdown requests, avoiding waiting the poll_interval before shutting
down.

This saves up to approximately half a second when running tests, but
much more dramatically saves that much time _per unit test_ we have
for the server.
@gsnedders
Copy link
Member Author

Ah, gah, you can't select a pipe on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants