Skip to content

fix: replace stale listings when a host restarts - #11

Merged
vdmkenny merged 1 commit into
mainfrom
codex/replace-server-registration
Nov 20, 2026
Merged

vdmkenny merged 1 commit into
mainfrom
codex/replace-server-registration

Conversation

@vdmkenny

Copy link
Copy Markdown
Contributor

A server restart creates a new session with the same persistent key. Previously the old lease stayed visible until it expired, so players saw duplicate entries and could select a stale session.

Replace the previous listing when a verified host registers a new session. Renewals and withdrawals still apply only to the current session. The integration test checks replacement, old-session rejection, independent directories and another game's listing.

Tested with the Zig tests, the directory HTTP and relay checks, and a restart of an empty server against the public directory.

Closes #10

@vdmkenny
vdmkenny merged commit 17af960 into main Nov 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace a host’s old listing when it registers a new session

1 participant