Commit 53e0e01
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 f7c233c commit 53e0e01
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
| 972 | + | |
972 | 973 | | |
973 | 974 | | |
974 | 975 | | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
975 | 982 | | |
976 | 983 | | |
977 | 984 | | |
| |||
0 commit comments