Commit 192af9f
committed
hawkbit-client: do not resume downloads for persistent server errors
Most 4xx HTTP status codes indicate that retrying the request unmodified
is not going to lead to success. Exceptions are "408 Request Timeout"
and "429 Too Many Requests".
So do not try to resume downloads under these conditions and report an
error to hawkBit immediately.
Signed-off-by: Bastian Krause <bst@pengutronix.de>1 parent 227a2f3 commit 192af9f
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
971 | 971 | | |
972 | 972 | | |
973 | 973 | | |
| 974 | + | |
974 | 975 | | |
975 | 976 | | |
976 | 977 | | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
977 | 984 | | |
978 | 985 | | |
979 | 986 | | |
| |||
0 commit comments