Files
radicle-explorer/explorer/crates/radicle-httpd
Yorgos SaslisandDaniel Norman 56df1bb3b6 httpd: Drain requests on SIGTERM and SIGINT
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>
2026-11-26 11:21:40 +01:00
..
2026-10-22 11:06:33 +02:00
2026-10-22 11:06:33 +02:00
2026-10-29 18:32:03 +01:00
2026-10-22 11:06:33 +02:00
2026-10-22 11:06:33 +02:00