fix(http-client): Use retryAfterDefault for GOAWAY retry
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2023-10-03 19:33:55 +02:00
parent 53cb166568
commit 3bca0879bf
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ public class HttpClient {
throw new IOException("Could not send request", e);
} catch (IOException e) {
if (e.getMessage().contains("GOAWAY received")) {
return handleRetryAfter(accept, responseBodyHandler, Math.min(1000, retryAfterMax));
return handleRetryAfter(accept, responseBodyHandler, retryAfterDefault);
} else throw new IOException("Could not send request", e);
}
if (res.statusCode() / 100 == 2) return res.body();