You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by da...@apache.org on 2018/10/31 10:11:50 UTC

lucene-solr:jira/http2: Increase the maxConnectionPerDestination

Repository: lucene-solr
Updated Branches:
  refs/heads/jira/http2 57dc0cbbd -> 9cabf4753


Increase the maxConnectionPerDestination


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/9cabf475
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/9cabf475
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/9cabf475

Branch: refs/heads/jira/http2
Commit: 9cabf4753e7f09d2640b73e926cdf0104b1bcd0e
Parents: 57dc0cb
Author: Cao Manh Dat <da...@apache.org>
Authored: Wed Oct 31 10:11:43 2018 +0000
Committer: Cao Manh Dat <da...@apache.org>
Committed: Wed Oct 31 10:11:43 2018 +0000

----------------------------------------------------------------------
 .../java/org/apache/solr/client/solrj/impl/Http2SolrClient.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cabf475/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java
index 943e6c2..8083d34 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java
@@ -189,7 +189,7 @@ public class Http2SolrClient extends SolrClient {
     httpClient.setUserAgentField(new HttpField(HttpHeader.USER_AGENT, AGENT));
 
 //    if (builder.maxConnectionsPerHost != null) httpClient.setMaxConnectionsPerDestination(builder.maxConnectionsPerHost);
-    httpClient.setMaxConnectionsPerDestination(4);
+    httpClient.setMaxConnectionsPerDestination(100000);
     if (builder.idleTimeout != null) httpClient.setIdleTimeout(builder.idleTimeout);
     if (builder.connectionTimeout != null) httpClient.setConnectTimeout(builder.connectionTimeout);
     return httpClient;