mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
WebSockets hijack the HTTP connection from the server, causing server.Close() to not wait for these connections to fully cleanup. This adds a global wait-group to the coderd API, which ensures all WebSocket HTTP handlers have properly exited before returning.