-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add a UpdateDownloadCancel state to the mender-update's state ma…
…chine To make sure we always cancel the update download in case of an error. We need to be able to handle HTTPS/network/... errors as well as artifact parsing errors (incl. checksum mismatches,...). Instead of adding `download_client->Cancel()` calls to many places and risking missing some more, we introduce a new state the UpdateDownload state transitions into on failure and then things continue to the `download_error` state that handles the related state scripts, etc. Ticket: MEN-7810 Changelog: Fix download failure to always do a proper cancellation and cleanup of internal HTTP stuctures to avoid breaking future HTTP requests. Fixes `bad_version` error. Signed-off-by: Vratislav Podzimek <[email protected]>
- Loading branch information
Showing
4 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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