Repository navigation
Guard disconnect callback reentry and maximum replay sequence - #13
Merged
gafferongames merged 8 commits intoOct 15, 2026
Merged
gafferongames merged 8 commits into
gafferongames merged 8 commits into
Conversation
…st for callback reentry By: Stella Co-Authored-By: GPT-6 Sol <noreply@openai.com>
…ential test against the C reference By: Stella Co-Authored-By: GPT-6 Sol <noreply@openai.com>
…active disconnect callbacks By: Stella Co-Authored-By: GPT-6 Sol <noreply@openai.com>
…replay sentinel and equal floor By: Stella Co-Authored-By: GPT-6 Sol <noreply@openai.com>
By: Stella Co-Authored-By: GPT-6 Sol <noreply@openai.com> # Conflicts: # compat/Compat.cs # compat/c/compat.c # scripts/interop.sh # tests/Tests.cs
…test against the C reference By: Stella Co-Authored-By: GPT-6 Sol <noreply@openai.com>
…y sentinel sequence By: Stella Co-Authored-By: GPT-6 Sol <noreply@openai.com>
By: Stella Co-Authored-By: GPT-6 Sol <noreply@openai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Disconnect callbacks may safely disconnect their own slot or stop the server without recursive callbacks, negative counts, or an invalid encryption index. The same protection covers loopback clients. Replay protection now rejects the reserved maximum sequence, matching the C reference.
This integrates the landed token-lifetime/address-selection block and preserves its strict expiry floor. Red-first unit and C differential checks cover reentry, stop/restart, timeout, loopback, maximum sequence, and expiry boundaries. Linux build and full runner passed; all 12 C interoperability legs passed against 39f04965. Parent and independent source review cover the final head.
Head: 52f0dd4
Branch: sprint/netcode-cs-port-block.w5.g2.e21
Verdict: LAND-ready for parent review and publication; no push, PR, merge into stream, or sprint finish done here.
Base integrated: sprint/netcode-cs-port at 7e2663c, which contains block 2 head da890bf.
C reference: 39f049657d6e738e533c751c2b5242fa7b2d4114, mas-bandwidth/netcode sprint/netcode-audit-fixes.
Scope: 7 files changed relative to the landed stream, 447 insertions, 3 deletions; clean checkout and git diff --check.
Subtask 1 — disconnect callback reentry:
Subtask 1 gate lines:
Subtask 2 — replay sentinel and restart floor:
Subtask 2 gate lines:
Final Linux gate (nova@b1, /home/nova/stella-netcode-block1-e21; nice 10, max 2 build workers, job-local TMPDIR):
Remaining work: parent-owned independent cold reads, publication and sprint landing. No task code remains unfinished.