You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Kevin Minder (JIRA)" <ji...@apache.org> on 2015/10/07 23:24:27 UTC
[jira] [Created] (KNOX-604) Expose configuration of HttpClient's
max connections per route setting
Kevin Minder created KNOX-604:
---------------------------------
Summary: Expose configuration of HttpClient's max connections per route setting
Key: KNOX-604
URL: https://issues.apache.org/jira/browse/KNOX-604
Project: Apache Knox
Issue Type: Bug
Components: Server
Reporter: Kevin Minder
Assignee: Kevin Minder
Fix For: 0.7.0
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();
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)