Skip to content

fix(open-stream): arm keepalive probe before ping, expose staleness - #77

Merged
ContextVM-org merged 1 commit into
masterfrom
fix/open-stream-keepalive-deadlock
Jul 22, 2026
Merged

fix(open-stream): arm keepalive probe before ping, expose staleness#77
ContextVM-org merged 1 commit into
masterfrom
fix/open-stream-keepalive-deadlock

Conversation

@ContextVM-org

Copy link
Copy Markdown
Contributor

Arm the keepalive probe timer before awaiting the ping publish, so a stuck relay can no longer silently park the stream. OpenStreamSession now exposes lastActivityAt and isStale() to let consumers build robust watchdogs that work even when timers are throttled (e.g., background tabs). Added tests for the probe‑timeout deadlock when pings hang or reject.

Arm the keepalive probe timer before awaiting the ping publish, so a stuck
relay can no longer silently park the stream. OpenStreamSession now exposes
lastActivityAt and isStale() to let consumers build robust watchdogs that
work even when timers are throttled (e.g., background tabs). Added tests
for the probe‑timeout deadlock when pings hang or reject.
@ContextVM-org
ContextVM-org merged commit bb0fb3f into master Jul 22, 2026
3 checks 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.

1 participant