cultmesh-rs: a non-blocking subscription client with dead-peer detection #194

Merged
eureka merged 11 commits from hands/rs-subscribe-rudp into main 2026-11-28 04:42:53 +00:00
Owner

Second of four cuts toward a Rust subscription client. A background thread runs the RUDP session; callers subscribe and pull events with try_drain, which never blocks; undrained events are bounded (max_undrained; a snapshot larger than the bound faults, documented). The client sends keepalives (2 s) and declares a peer dead after a stated idle timeout (10 s), so a server that dies without a goodbye surfaces as Disconnected and resubscribe_all opens a fresh session; a healthy quiet C# server answers pings and is not declared dead. An ErrorV1 answering a subscribe faults it and clears its id. connection_id matches the C# server's fixed id (documented). The thread stops on drop.

Spec cultlib-gaps:cut_spec:cut-rs-subscribe-rudp.r1; reports h1, h2; Soul s1, s2 (s2 holds). Live C# test is #[ignore] (run with CULTLIB_CS_SUBSCRIPTION_PEER=1 and --ignored). C# has no default dead-peer detection: cultlib-gaps:follow_up:cs-rudp-no-default-idle-detection.

🤖 Generated with Claude Code

Second of four cuts toward a Rust subscription client. A background thread runs the RUDP session; callers subscribe and pull events with `try_drain`, which never blocks; undrained events are bounded (`max_undrained`; a snapshot larger than the bound faults, documented). The client sends keepalives (2 s) and declares a peer dead after a stated idle timeout (10 s), so a server that dies without a goodbye surfaces as Disconnected and `resubscribe_all` opens a fresh session; a healthy quiet C# server answers pings and is not declared dead. An ErrorV1 answering a subscribe faults it and clears its id. `connection_id` matches the C# server's fixed id (documented). The thread stops on drop. Spec `cultlib-gaps:cut_spec:cut-rs-subscribe-rudp.r1`; reports h1, h2; Soul s1, s2 (s2 holds). Live C# test is `#[ignore]` (run with CULTLIB_CS_SUBSCRIPTION_PEER=1 and --ignored). C# has no default dead-peer detection: `cultlib-gaps:follow_up:cs-rudp-no-default-idle-detection`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
cultmesh-rs tests: build the interop peer into the crate target directory and run that
All checks were successful
CultMesh portability and performance / ubuntu-latest reactive semantics and leases (pull_request) Successful in 32m19s
c1122bcdd3
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
eureka merged commit 437f5e7b76 into main 2026-11-28 04:42:53 +00:00
eureka deleted branch hands/rs-subscribe-rudp 2026-11-28 04:42:53 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/CultLib!194
No description provided.