mirror of
https://github.com/coder/coder.git
synced 2026-06-03 13:08:25 +00:00
d04570ad29
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.