cultnet-ts test: reconnecting client sends only after its own handshake #113
Loading…
Reference in a new issue
No description provided.
Delete branch "rudp-flake"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes variants:follow_up:cultnet-ts-rudp-reconnect-flake.
a client reconnecting from the same endpoint replaces only its own session(packages/cultnet-ts/test/rudp-server.test.ts) failed in forge run 1331 withCannot send RUDP data before the session is connected. The test waited for the server to accept the reconnect (connected.length === 3) and then sent from the client; the client's new session is connected only when it hears the Accept, so the send raced it. Not a client bug:connect()starts a new session generation andsendrefusing before it connects is the contract. The test now waits ona.connection.connectedbefore sending. Two lines, test only.Could not reproduce locally in 40 serial runs or 60 runs under CPU load (loopback is too quick); the race is read from the code path and the CI failure.
🤖 Generated with Claude Code