Skip to content

A slow update download no longer restarts the daemon, and a dead connection is dropped after 30 seconds - #38

Merged
liamdevss merged 1 commit into
mainfrom
stats-stall
Nov 29, 2026
Merged

liamdevss merged 1 commit into
mainfrom
stats-stall

Conversation

@liamdevss

Copy link
Copy Markdown
Contributor

Two causes of the watchdog restarting the daemon (Sentry SERVEROS-8).

  • The updates worker stopped its heartbeat while a release downloaded. The download has ten minutes, the watchdog gives about four and a half, so a daemon on a slow line was restarted mid-download and never finished updating. The worker now keeps its heartbeat going while it installs.
  • Writes to the panel had no time limit. A connection that went dead without closing held the writer, the queues behind it filled and every worker that sends blocked. A write now times out after 30 seconds and the link is dialled again.

Test: a_long_step_keeps_its_worker_ticking_and_gives_its_answer. AI wrote this change.

…ad, and a dead connection is dropped after 30 seconds instead of holding up every worker

The updates worker keeps its heartbeat going while a release downloads (which has ten minutes of its own), so the watchdog doesn't restart the daemon before it finishes. Writes to the panel time out, so a connection that went dead without closing is dialled again rather than filling the queues behind it.
@liamdevss
liamdevss requested a review from a team as a code owner November 29, 2026 00:37
@liamdevss
liamdevss merged commit d220d82 into main Nov 29, 2026
14 checks passed
@liamdevss
liamdevss deleted the stats-stall branch November 29, 2026 00:43
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