Browse Source

filer read chunk retry if status code 499 (#5528)

pull/5532/head
Konstantin Lebedev 8 months ago
committed by GitHub
parent
commit
2f3fee9bb9
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      weed/util/http_util.go

2
weed/util/http_util.go

@ -328,7 +328,7 @@ func ReadUrlAsStreamAuthenticated(fileUrl, jwt string, cipherKey []byte, isConte
} }
defer CloseResponse(r) defer CloseResponse(r)
if r.StatusCode >= 400 { if r.StatusCode >= 400 {
retryable = r.StatusCode == http.StatusNotFound || r.StatusCode >= 500
retryable = r.StatusCode == http.StatusNotFound || r.StatusCode >= 499
return retryable, fmt.Errorf("%s: %s", fileUrl, r.Status) return retryable, fmt.Errorf("%s: %s", fileUrl, r.Status)
} }

Loading…
Cancel
Save