Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-4096

RestCrowdClient http.max.connections doesn't take effect when the base URL doesn't include a port

    • Icon: Bug Bug
    • Resolution: Deployed
    • Icon: Medium Medium
    • 2.8.2
    • 2.8
    • None
    • None

      In OnDemand, the Crowd Base URL is configured as http://localhost/crowd/service/

      During RestExecutor initialisation the maximum connections per route is configured for the route "http://localhost" to be 20. There's a subtle problem with this though. When actually issuing a request to Horde, the HttpRoute becomes "http://localhost:80", which is treated differently, and falls back to the default maximum connections per route of 2.

      It looks like INST-2 introduced this issue, when they updated the Icebat to explicitly hack the CROWD_SERVER_BASE_URL in each services run file. /cc cchauvet

      Ultimately this looks like it might actually be an Apache HttpClient bug. In debugging I noticed that the outbound request is definitely "http://localhost/crowd/foo", but after it passes through all the various HttpClient "*Exec" steps it ends up as "http://localhost:80/crowd/foo".

            [CWD-4096] RestCrowdClient http.max.connections doesn't take effect when the base URL doesn't include a port

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 - restricted [ 1511120 ] New: JAC Bug Workflow v3 [ 3365637 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Mareusz (Inactive) made changes -
            Remote Link New: This issue links to "KRAK-256 (JIRA Server (Bulldog))" [ 238560 ]
            Owen made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 [ 1393240 ] New: Simplified Crowd Development Workflow v2 - restricted [ 1511120 ]
            Owen made changes -
            Workflow Original: Crowd Development Workflow v2 [ 754260 ] New: Simplified Crowd Development Workflow v2 [ 1393240 ]
            Roger Barnes (Inactive) made changes -
            Remote Link Original: This issue links to "Page (Extranet)" [ 94328 ] New: This issue links to "Page (Extranet)" [ 94328 ]
            Dave C made changes -
            Link New: This issue is related to CWD-4196 [ CWD-4196 ]
            Pierre-Etienne Poirot (Inactive) made changes -
            Link New: This issue was split into CWD-4337 [ CWD-4337 ]
            Pierre-Etienne Poirot (Inactive) made changes -
            Fix Version/s New: 2.8.2 [ 50300 ]
            Resolution New: Deployed [ 16 ]
            Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
            Pierre-Etienne Poirot (Inactive) made changes -
            Assignee Original: Pierre-Etienne Poirot [ pepoirot ] New: joe [ jwalton ]

            Per request from jwalton, the patch will be applied under a new issue: CWD-4337

            Pierre-Etienne Poirot (Inactive) added a comment - Per request from jwalton , the patch will be applied under a new issue: CWD-4337

              jwalton joe
              sday@atlassian.com Samuel Day (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: