Real-Time Backend
11 min
Your WebSocket Server Leaks Memory at 500 Connections — Here's Why
The memory graph climbed all night while the connection count sat flat at 500. The culprit was not a code leak — it was zombie sockets the garbage collector could never reach. A war story, a reproduction, and the five-line fix.
Jun 5, 2026