Skip to content

[Reliability] WebSocket connections not cleaned up — potential connection leak #12

Description

@YHQZ1

apps/api/internal/ws/hub.go manages WebSocket connections for real-time build log streaming, but conn.Close() errors are unchecked (line 37) and there's no visible cleanup when a deployment finishes or a client disconnects unexpectedly.
Under load (many concurrent deployments), leaked connections accumulate until the process runs out of file descriptors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — next sprintReliabilityCorrectness / uptime issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions