diff --git a/commons-http-client/src/main/java/io/gitlab/jfronny/commons/http/client/HttpClient.java b/commons-http-client/src/main/java/io/gitlab/jfronny/commons/http/client/HttpClient.java index 0f0eb4f..1947107 100644 --- a/commons-http-client/src/main/java/io/gitlab/jfronny/commons/http/client/HttpClient.java +++ b/commons-http-client/src/main/java/io/gitlab/jfronny/commons/http/client/HttpClient.java @@ -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();