Keep socket listener active during deployment
This commit is contained in:
@@ -192,6 +192,9 @@ the service and its post-fork workers restart. Direct launches without systemd
|
||||
activation retain the existing configured Unix/TCP listener behavior.
|
||||
The service preserves its runtime directory across service restarts because the
|
||||
socket unit, not the service unit, owns a listener path inside that directory.
|
||||
Normal deployments therefore restart only `uce.service`; restarting
|
||||
`uce.socket` at the same time removes the listener and forfeits the zero-gap
|
||||
handoff.
|
||||
On termination the parent asks render workers to close their listeners, finish
|
||||
accepted connections within the bounded worker drain interval, and only then
|
||||
exits. This prevents an accepted FastCGI request from being reset at handoff;
|
||||
|
||||
Reference in New Issue
Block a user