-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hawkbit-client: handle HTTP errors 409/429 by retrying limited times
hawkBit's DDI API [1] returns a HTTP 409 error code (Conflict) in case another transaction is ongoing: "E.g. in case an entity is created or modified by another user in another request at the same time. You may retry your modification request." [1] Another HTTP error code we should handle is 429 (Too Many Requests): "Too many requests. The server will refuse further attempts and the client has to wait another second." [1] Both error conditions are now handled by waiting (1 second) and retrying the request again. Retrys are currently limited to 10. [1] https://www.eclipse.org/hawkbit/apis/ddi_api/ Signed-off-by: Bastian Krause <bst@pengutronix.de>
- Loading branch information
1 parent
566a50a
commit 587ec7f
Showing
1 changed file
with
49 additions
and
2 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