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/30 04:04:54 UTC
lucene-solr:jira/http2: Fix maxConnectionsPerDestination to 4
Repository: lucene-solr
Updated Branches:
refs/heads/jira/http2 a8b385fe9 -> 4943e412e
Fix maxConnectionsPerDestination to 4
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/4943e412
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/4943e412
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/4943e412
Branch: refs/heads/jira/http2
Commit: 4943e412ef7d7de40fb51b48cec090d31adacb08
Parents: a8b385f
Author: Cao Manh Dat <da...@apache.org>
Authored: Tue Oct 30 04:04:46 2018 +0000
Committer: Cao Manh Dat <da...@apache.org>
Committed: Tue Oct 30 04:04:46 2018 +0000
----------------------------------------------------------------------
.../java/org/apache/solr/client/solrj/impl/Http2SolrClient.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/4943e412/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 08db9d1..943e6c2 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
@@ -188,7 +188,8 @@ public class Http2SolrClient extends SolrClient {
httpClient.setMaxRequestsQueuedPerDestination(asyncTracker.getMaxRequestsQueuedPerDestination());
httpClient.setUserAgentField(new HttpField(HttpHeader.USER_AGENT, AGENT));
- if (builder.maxConnectionsPerHost != null) httpClient.setMaxConnectionsPerDestination(builder.maxConnectionsPerHost);
+// if (builder.maxConnectionsPerHost != null) httpClient.setMaxConnectionsPerDestination(builder.maxConnectionsPerHost);
+ httpClient.setMaxConnectionsPerDestination(4);
if (builder.idleTimeout != null) httpClient.setIdleTimeout(builder.idleTimeout);
if (builder.connectionTimeout != null) httpClient.setConnectTimeout(builder.connectionTimeout);
return httpClient;
@@ -622,7 +623,7 @@ public class Http2SolrClient extends SolrClient {
int getMaxRequestsQueuedPerDestination() {
// comfortably above max outstanding requests
- return MAX_OUTSTANDING_REQUESTS * 2;
+ return MAX_OUTSTANDING_REQUESTS * 3;
}
public void waitForComplete() {