title: Apache HTTP client only two connections are possible
body: <p>I have below code to invoke a REST API method using Apache HTTP client. However only two parallel requests could be sent using above client. 
  Is there any parameter to set max-connections?</p>
  
  <pre><code>     HttpPost post = new HttpPost(resourcePath);
              addPayloadJsonString(payload, post);//set a String Entity
              setAuthHeader(post);// set Authorization: Basic header
              try {
                  return httpClient.execute(post);
  
              } catch (IOException e) {
                  String errorMsg = "Error while executing POST statement";
                  log.error(errorMsg, e);
  
  
    throw new RestClientException(errorMsg, e);
          }
  </code></pre>
  
  <p>Jars I am using are below are,</p>
  
  <pre><code>org.apache.httpcomponents.httpclient_4.3.5.jar
  org.apache.httpcomponents.httpcore_4.3.2.jar
  </code></pre>