mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-24 04:33:17 +00:00
2308db45bb
Agent removal occurs inside read-loop cleanup before the handler releases its per-IP connection slot. The flood test could observe the first state and retry while the slot was still occupied, causing a spurious rejection. Wait for the guarded admission count to reach zero before reconnecting, while preserving rejection at capacity and successful registration after release.