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

[arbiter] close sockets on shutdown #1221

Merged
merged 1 commit into from Mar 13, 2016

Conversation

tilgovi
Copy link
Collaborator

@tilgovi tilgovi commented Mar 13, 2016

Close all the listeners when the arbiter shuts down. By doing so,
workers can close the socket at the beginning of a graceful shut
down thereby informing the operating system that the socket can
be cleaned up. With this change, graceful exits with such workers
will refuse new connections while draining, allowing load balancers
to respond more quickly and avoiding leaving connections dangling
in the listen backlog, unaccepted.

Ref #922

Close all the listeners when the arbiter shuts down. By doing so,
workers can close the socket at the beginning of a graceful shut
down thereby informing the operating system that the socket can
be cleaned up. With this change, graceful exits with such workers
will refuse new connections while draining, allowing load balancers
to respond more quickly and avoiding leaving connections dangling
in the listen backlog, unaccepted.

Ref #922
@tilgovi tilgovi force-pushed the fix/922-arbiter-close-on-shutdown branch from 04d6547 to 39cecbc Compare March 13, 2016 23:47
@tilgovi
Copy link
Collaborator Author

tilgovi commented Mar 13, 2016

Added tests.

@benoitc
Copy link
Owner

benoitc commented Mar 13, 2016

+1 . (review from the plane still on the ground)

@tilgovi
Copy link
Collaborator Author

tilgovi commented Mar 13, 2016

🌎 ✈️ :shipit: 🍸 🌍

tilgovi added a commit that referenced this pull request Mar 13, 2016
@tilgovi tilgovi merged commit b6afc28 into master Mar 13, 2016
@tilgovi tilgovi deleted the fix/922-arbiter-close-on-shutdown branch March 13, 2016 23:59
@benoitc
Copy link
Owner

benoitc commented Mar 14, 2016

indeed! thx for the patches! going off now for the next 9h
On Sun, 13 Mar 2016 at 16:59, Randall Leeds notifications@github.com
wrote:

Merged #1221 #1221.


Reply to this email directly or view it on GitHub
#1221 (comment).

mjjbell pushed a commit to mjjbell/gunicorn that referenced this pull request Mar 16, 2018
…-shutdown

[arbiter] close sockets on shutdown
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.

None yet

2 participants