4 ms·
Here's how it works in our case: 1. Start a new process, start accepting new connections 2. In your old process, stop accepting new connections — old ones are
by petethepig 10y ago
Here's how it works in our case:
1. Start a new process, start accepting new connections
2. In your old process, stop accepting new connections — old ones are still active.
3. In the old process, close old connections when they become idle.
4. In the old process, wait until all of your connections are closed and then quit or automatically quit after a timeout.