cultmesh-rs: a non-blocking subscription client with dead-peer detection #194
Loading…
Reference in a new issue
No description provided.
Delete branch "hands/rs-subscribe-rudp"
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?
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 andresubscribe_allopens 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_idmatches 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