Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-604

Expose configuration of HttpClient's max connections per route setting

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.7.0
    • Server
    • None

    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();

      Attachments

        Issue Links

          Activity

            People

              kminder Kevin Minder
              kminder Kevin Minder
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: