Repository navigation
Description
What strfry has. Two operator-lifecycle properties nostream does not:
- Zero-downtime restart. Multiple instances may listen on the same port (
SO_REUSEPORT);SIGUSR1stops a process accepting new connections and lets it exit once its last connection closes. Upgrade the binary by starting the new one and signalling the old — connected clients never see a drop. - Hot config reload. Many
strfry.confparameters apply without a restart, including write-policy plugin changes (a plugin reloads when its script mtime changes).
Why operators care. A relay that drops every websocket on upgrade is a relay whose upgrades are scheduled against a maintenance window; a relay that applies a policy change live is a relay whose spam response is measured in seconds. Both are cheap promises to keep and expensive to discover late — measured today, six of fourteen well-known relays advertise strfry, none advertises nostream.
Where nostream stands. Settings arrive through environment variables and are read at boot; the relay is one process on one listener, so an upgrade is a stop and start. That is the same posture v3 has, so it is not a regression introduced by the rewrite — it is an operator capability neither line has.
Why this is post-v4. Both are changes to process and socket lifecycle rather than to protocol behaviour, and the cutover's promise is "the same relay, on the Rust engine". Adding a supervisor-visible drain protocol in the same window would put a new failure mode in the 48h parallel run.
Shape it would take. Drain first: a signal handler that stops accepting, tells the health endpoint it is draining, and exits at idle (with a timeout). Then a second listener with SO_REUSEPORT and a documented handover. Hot reload is separable: a SIGHUP that re-reads the settings file and swaps only the fields that are safe to change live — a table of which fields those are belongs in the docs, not in the code's silence.
Activity