mirror of
https://github.com/morluto/rea.git
synced 2026-11-23 06:55:55 +00:00
The reconnect probe closed its client and then connected again while the bridge waited 0.2 s for the next accept. A probe stalled past that window saw the listener closed (ConnectionRefusedError on main run 44855978833, FileNotFoundError with an injected stall). Queue the successor connection and its first request before ending the previous one, as the probe already does for the first client, so neither the reconnect nor the unauthenticated-idle budget depends on probe scheduling. A rejected connection keeps its idle budget, so its successor is queued before the probe reads the rejection. Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com> Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>