-
-
Notifications
You must be signed in to change notification settings - Fork 763
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve shutdown process in Multiprocess mode
Explicitly clos listening sockets in both parent and child processes early in the shutdown process. That way, no new connections can hit workers after shutdown is initiated by the parent process. While here, speedup shutdown by splitting process shutdown into terminate and join loop, so all processes are shutdown in parallel.
- Loading branch information
1 parent
d62a537
commit 2782d16
Showing
2 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters