Description
The httpClient should allow configurable “max connection per route”, “ max total connections”. Currently the GatewayDispatchFilter.init() configures the HttpClient with default connection pool, which is too small.
httpClient = HttpClients.custom().setDefaultCookieStore(new NoCookieStore()).build();
change to:
httpClient = HttpClients.custom().setDefaultCookieStore(new NoCookieStore()).setMaxConnPerRoute(…) .setMaxConnTotal(…).build();