mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-05-04 13:37:49 +08:00
filer read chunk retry if status code 499 (#5528)
This commit is contained in:
parent
6e4b9181f5
commit
2f3fee9bb9
@ -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…
Reference in New Issue
Block a user