diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2026-07-09 18:54:04 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2026-07-09 18:54:04 -0700 |
| commit | ae44fb222ec73cae8441f5a5d9a21f8585fe587f (patch) | |
| tree | 155ea4b83850345cefc4924d71f3922b988dd304 /.github | |
| parent | e4eb0c07010a32db3cf68083b2d63f9ceb21e009 (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 '.github')
0 files changed, 0 insertions, 0 deletions