aboutsummaryrefslogtreecommitdiff
path: root/hotline/server_blackbox_test.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2026-07-09 18:54:04 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2026-07-09 18:54:04 -0700
commitae44fb222ec73cae8441f5a5d9a21f8585fe587f (patch)
tree155ea4b83850345cefc4924d71f3922b988dd304 /hotline/server_blackbox_test.go
parente4eb0c07010a32db3cf68083b2d63f9ceb21e009 (diff)
Send a goodbye message to clients on signal-initiated shutdown
SIGTERM and SIGINT canceled the server context directly, so clients were force-closed without the TranDisconnectMsg broadcast that the API shutdown endpoint sends. The signal handler now calls Server.Shutdown with a goodbye message, giving both shutdown paths the same behavior: broadcast, a brief flush window, then force-close and drain. Default signal handling is restored before the graceful shutdown begins, so a second signal still kills the process immediately rather than waiting out the flush window.
Diffstat (limited to 'hotline/server_blackbox_test.go')
0 files changed, 0 insertions, 0 deletions