Repository navigation
Updates: check every minute, with timeouts; release 0.2.3 - #4
Merged
Merged
Conversation
A new release took up to 10 minutes to show up, and a check that hung (after sleep or a network change) had no timeout, so every later check waited on it until the app restarted. Each check also left its Update resource open on the Rust side. The app now checks every minute, like Zynko, and again when the window gains focus or becomes visible (at most once per 15 seconds). Checks time out after 30 seconds and the background download after 15 minutes; updates that are not kept are closed. A version already found is not downloaded again every minute after a failed background download: installing from the dialog downloads it. A manual check during the background download opens the dialog instead of doing nothing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and resulting behavior
New releases took up to 10 minutes to reach an open LowMail (Zynko, by comparison, checks every minute). Two bugs made it worse:
check()had no timeout. A request that hung after sleep or a network change keptcheckingset, so no later check ran until the app restarted.Updateresource held on the Rust side untilclose(); replaced ones were never closed.Now:
Mobile builds are unchanged (
supportedis still desktop only).Validation
bun run check(0 errors),bun run test,bun run build,bun run lint:ui(clean): OK.Additional context
The manifest is
github.com/.../releases/latest/download/latest.json: the redirect isno-cacheand the asset URL is per version, so a new release is visible on the next check. These are release downloads, not REST API calls, so the 60/hour unauthenticated API limit does not apply. Same change as LowBloat/LowNotes#125 and LowBloat/LowQuery#37.Installed copies keep their current cadence until they update to a release with this change.