diff options
| author | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2024-04-24 18:51:05 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-24 06:51:05 -0700 |
| commit | 2f3fee9bb9c4e7ac4bed47896ed0ed8aa409d9f5 (patch) | |
| tree | 73742bfa3b67a9491b6614108eafa81dbfc85dd3 /weed/util/http_util.go | |
| parent | 6e4b9181f5742b5a71c49ffb8f8e22ed0754ef5f (diff) | |
| download | seaweedfs-2f3fee9bb9c4e7ac4bed47896ed0ed8aa409d9f5.tar.xz seaweedfs-2f3fee9bb9c4e7ac4bed47896ed0ed8aa409d9f5.zip | |
filer read chunk retry if status code 499 (#5528)
Diffstat (limited to 'weed/util/http_util.go')
| -rw-r--r-- | weed/util/http_util.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/util/http_util.go b/weed/util/http_util.go index 7b3ac4bc4..6f6a17008 100644 --- a/weed/util/http_util.go +++ b/weed/util/http_util.go @@ -328,7 +328,7 @@ func ReadUrlAsStreamAuthenticated(fileUrl, jwt string, cipherKey []byte, isConte } defer CloseResponse(r) 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) } |
