title: What is the difference beetween max connections per route and max connections total in apache HttpClient?
body: <p>I'm trying to understand what is the difference between them. I tried to read the documentation but it does not help alot.</p>
  
  <pre><code>HttpClientBuilder
                      .create()
                      .setMaxConnPerRoute(maxConnectionsPerRoute)
                      .setMaxConnTotal(maxConnectionTotal)
                      .build();
  </code></pre>
  
  <p>It's the same of setDefaultMaxPerRoute and setMaxTotal from PoolingHttpClientConnectionManager:</p>
  
  <pre><code>final PoolingHttpClientConnectionManager poolingmgr = new PoolingHttpClientConnectionManager();
  poolingmgr.setDefaultMaxPerRoute(max);
  poolingmgr.setMaxTotal(2 * max);
  </code></pre>