retry sts, http client fix
This commit is contained in:
1 parent
2e1a4c9ea3
commit
17ff6b940b
4 files changed
+26
-8
No files matched your search
@@ -485,7 +485,7 @@ namespace HttpClient
|
||||
sleep(backoffMs)
|
||||
|
||||
response = m.AwaitInternal()
|
||||
if response.IsSuccess() or response.IsTimedOut() or response.IsCancelled() or response.StatusCode() < 500
|
||||
if response.IsTimedOut() or response.IsCancelled() or (response.StatusCode() >= 200 and response.StatusCode() < 500)
|
||||
return response
|
||||
end if
|
||||
triesLeft -= 1
|
||||
|
||||
Reference in new issue
Block a user