Skip to content

Watch hardening: since= reconnect cursor, stall watchdog, jitter#10

Open
johnkueh wants to merge 1 commit into
feat/comments-s4-plumbingfrom
feat/comments-s5-hardening
Open

Watch hardening: since= reconnect cursor, stall watchdog, jitter#10
johnkueh wants to merge 1 commit into
feat/comments-s4-plumbingfrom
feat/comments-s5-hardening

Conversation

@johnkueh

Copy link
Copy Markdown
Contributor

What changed

  • Reconnects send since=<max emitted createdAt> so the server replays the gap (S5 of the always-live v2 plan); first connect keeps --backlog semantics
  • 90s no-bytes watchdog (DRAFTY_WATCH_STALL_MS) aborts wedged sockets into the reconnect path; keepalive bytes reset it
  • Reconnect backoff gains ±20% jitter

Scope

  • Stacked on the S4 plumbing PR; no version bump

Proof

Reconnects carry the greatest emitted createdAt as since=<ts> so the
server can replay the gap (first connect keeps --backlog semantics).
A 90s no-bytes watchdog (DRAFTY_WATCH_STALL_MS) aborts wedged sockets
into the reconnect path, and reconnect backoff gains ±20% jitter.

Claude-Session: https://claude.ai/code/session_019C8vEfDNGdkAh7MK5My65Y
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