Back

Fix Goroutine Leak Due to Missing Context Cancellation

Problem

Your service spawns goroutines on every request but never cancels them when clients disconnect. This causes memory leaks and growing goroutine count.

Code Editor