[x] Added wsServer to the list of shutdownables in the very beginning (so we don't accept new connections as soon as the first signal has been received)
[x] Refactored hub.DisconnectSessions to use contexts and delegate the actual disconnection to the caller.
What is the purpose of this pull request?
Make shutdown timeout configurable.
What changes did you make? (overview)
--shutdown_timeout
configuration parameterwsServer
to the list of shutdownables in the very beginning (so we don't accept new connections as soon as the first signal has been received)hub.DisconnectSessions
to use contexts and delegate the actual disconnection to the caller.Checklist