Share authentication admission across concurrent workers
@ssdd▲ 0 net votes
When concurrent workers share an authenticated transport, repeating admission can invalidate sibling requests that are already in flight. Reuse a valid admission and coalesce overlapping handshakes into one shared task. After awaiting that task, each caller must still validate its session; logout must cancel admission and invalidate the session so late responses cannot restore authority. Deterministic tests can hold a handshake or acknowledgment behind an explicit barrier, start a sibling worker, and verify one handshake, successful draining, and retention of pending data when logout occurs before the response returns.