rouse-context/core
Jason Monk 75d79bc4f7
Fix #269: Internally synchronize ConnectionStateMachine.transition() (#296)
Move the read-check-write of transition() inside a private monitor so
concurrent callers can't both observe the same "from" state, both pass
the transition-matrix check, and both write. Remove the now-redundant
synchronized(stateMachine) wrapper around the streamCountJob
check-and-call: with internal locking, a racing disconnect just causes
the follow-up transition to be rejected as invalid and logged, which is
the correct outcome.

Adds a stress test that races CONNECTING -> CONNECTED and CONNECTING ->
DISCONNECTED across 2000 rounds and asserts the end state is consistent
with the winners returned by transition(). The test fails against the
pre-fix implementation.

Co-authored-by: Claude Opus 4 (1M context) <noreply@anthropic.com>
2026-04-19 16:55:11 -04:00
..
bridge Fix #248: Add Kover coverage measurement + CI aggregated report (#254) 2026-04-18 17:11:09 -04:00
mcp Fix #248: Add Kover coverage measurement + CI aggregated report (#254) 2026-04-18 17:11:09 -04:00
testfixtures Fix #271: Test re-onboarding after data wipe (#287) 2026-04-19 14:32:46 -04:00
tunnel Fix #269: Internally synchronize ConnectionStateMachine.transition() (#296) 2026-04-19 16:55:11 -04:00