Skip to content

fix(status): show "Can't reach the server" sooner when the server stops answering - #29

Merged
otherworld-dev merged 3 commits into
devfrom
d1128-flyout-can-t-reach-the-server-sooner
Nov 7, 2026
Merged

otherworld-dev merged 3 commits into
devfrom
d1128-flyout-can-t-reach-the-server-sooner

Conversation

@otherworld-dev

@otherworld-dev otherworld-dev commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

The status line only switched to "Can't reach the server" once a root listing failed, which on a connection that goes quiet takes about 90 s, so a hung upload kept "Uploading X" up meanwhile. The router now notes whether the account's server answers, and the line switches once there have been two failures in a row and the first came back 10 s ago. A request that went unanswered for 10 s before failing counts as two. A blip that a retry gets through never shows.

…ps answering

The status line only found out the server had gone when a listing of the root
failed, and on a connection that just goes quiet that's four dials of about
21 s each, so a hung upload kept "Uploading X" up for around 90 s. The router
now notes whether the account's server answers every request, and the line
switches once there have been two failures in a row (or one dial nobody
answered) and the first is 10 s old. A single blip that a retry gets through
never shows, and any answer clears it.
…its send

Testing on the VM, a 30 MB upload that had been running for a minute failed
20 s after the network went, and because the clock started when that request
was sent, the line went to "Can't reach the server" on that one failure. A
single reset of a long upload would have flashed it even when the retry went
straight through. The 10 s now counts from when the first failure comes back,
and a request that waited that long before failing counts as two failures
rather than skipping the wait.
…ch-the-server-sooner

# Conflicts:
#	cmd/nimbo-gui/now_test.go
@otherworld-dev
otherworld-dev merged commit a020c5c into dev Nov 7, 2026
3 checks passed
@otherworld-dev
otherworld-dev deleted the d1128-flyout-can-t-reach-the-server-sooner branch November 7, 2026 23:34
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