mirror of
https://github.com/restic/restic.git
synced 2026-02-03 04:20:45 -05:00
Mark HTTP Error 507 as permanent
This change classifies HTTP error 507 (Insufficient Storage) as a permanent error that should not be retried. I keep running into this once in a while and there is literally no point in retrying when the server is full. Fixes #5429 Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
This commit is contained in:
parent
0a6296bfde
commit
f18b8ad425
1 changed files with 1 additions and 1 deletions
|
|
@ -182,7 +182,7 @@ func (b *Backend) IsPermanentError(err error) bool {
|
|||
|
||||
var rerr *restError
|
||||
if errors.As(err, &rerr) {
|
||||
if rerr.StatusCode == http.StatusRequestedRangeNotSatisfiable || rerr.StatusCode == http.StatusUnauthorized || rerr.StatusCode == http.StatusForbidden {
|
||||
if rerr.StatusCode == http.StatusRequestedRangeNotSatisfiable || rerr.StatusCode == http.StatusUnauthorized || rerr.StatusCode == http.StatusForbidden || rerr.StatusCode == http.StatusInsufficientStorage {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue