reload_dshackle: cut gateway connections on handler completion (~30 ms) instead of a fixed 3 s settle #81
Reference in New Issue
Block a user
Delete Branch "reload-settle-poll"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The SIGHUP reload is in-process and completes in 10-30 ms (us-32 log:
Reloading config...->Reloading config has been completed). The fixedsleep 3before the TCP cut was the window in which a removed upstream was already unrouted inside dshackle while the gateway still held the old announcements and kept sending queries it could no longer answer.This polls the container log for the completion line (or the existing FAIL/DROP markers) every 50 ms;
SETTLEstays the upper bound. Sequence is unchanged otherwise (reload, then cut only when removals were detected), so the reconnect always lands on the new config.Operator request 2026-09-19.
🤖 Generated with Claude Code
https://claude.ai/code/session_01KjqejYycVyVvrxV9aTDhgX