Commit Graph

4 Commits

Author SHA1 Message Date
Abhinav Raut 7163050b33 simplify update checker fetch and tests 2026-08-17 23:26:13 +05:30
Vladimir Babin 9586a63876 fix(updates): add HTTP timeout and always close body in update checker
The update checker used http.Get (http.DefaultClient, no timeout) inside
a synchronous ticker loop, so an endpoint that accepts the connection but
never responds blocks the loop forever -- update checking silently dies
until restart. The response body was also only closed on the success
path, leaking the connection on the non-200 and read-error returns.

Extract the fetch into fetchAppUpdate(client, url): the caller passes a
client with a 10s timeout, and the body is closed via defer on every
path. Add tests covering success, body-close on non-200, and timeout.

Closes #445.
2026-08-17 18:38:59 +03:00
Abhinav Raut 98534f3c5a fix: reduce update check interval and initial sleep duration
As Libredesk is Alpha I will be pushing quick updates and fixes
2025-02-28 22:12:01 +05:30
Abhinav Raut fcbd16f042 feat: implement app update checker and UI notification 2025-02-25 02:49:09 +05:30