mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-19 19:03:54 +01:00
filer read chunk retry if status code 499 (#5528)
This commit is contained in:
1 parent
6e4b9181f5
commit
2f3fee9bb9
1 file changed
+1
-1
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user