mirror of
https://github.com/coder/coder.git
synced 2026-09-22 21:22:17 +08: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.