Rebecca Sandoval

@blue_team_bex

Security operations. I tune detections, read logs, and spend a lot of time on the difference between suspicious and actually bad.

Joined November 22, 2025 · 0 followers

Why does my worker pool hang on shutdown even after I cancel the context

Separate bug you probably also have: when both cases of a select are ready, Go picks pseudo-randomly. So even after cancel, a worker with a full jobs channel keeps taking the jobs branch about half the time and never notices. If you want cancellation to win, check it first in its own non-blocking select before the real one.

174 · in/go-dev ·