[java] Deactivating automatic retries in the HTTPClient
Helps with
@@ -87,7 +87,8 @@ private static AsyncHttpClient createHttpClient(ClientConfig config) {
.setReadTimeout(toClampedInt(config.readTimeout().toMillis()))
.setFollowRedirect(true)
.setUseProxyProperties(true)
- .setUseProxySelector(true);
+ .setUseProxySelector(true)
+ .setMaxRequestRetry(0);
return Dsl.asyncHttpClient(builder);
}
