mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
httpd only handled SIGHUP, so a stop or restart killed it at once and cut off in-flight clones and archive downloads. On the first signal, stop accepting connections and let in-flight requests finish. A second signal exits at once. The supervisor's stop timeout, e.g., systemd's `TimeoutStopSec`, bounds the drain, so httpd needs no timeout of its own. One downside is that a restart now refuses connections until the drain ends instead of for about a second. Co-authored-by: Daniel Norman <daniel@norman.life>