4 ms·
How does it do that without dropping open connections (does it drain)?
by alpb 10y ago
How does it do that without dropping open connections (does it drain)?
- amenghra 10y agoYou can close the socket without dropping existing connections.
- petethepig 10y agoHere'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.