bszabo97 commented on code in PR #1182:
URL: https://github.com/apache/solr/pull/1182#discussion_r1035700491
##########
solr/core/src/java/org/apache/solr/util/SolrCLI.java:
##########
@@ -618,6 +623,10 @@ private static boolean exceptionIsAuthRelated(Exception
exc) {
&& Arrays.asList(UNAUTHORIZED.code,
FORBIDDEN.code).contains(((SolrException) exc).code()));
}
+ public static SolrClient getHttpSolrClient(String baseUrl) {
+ return new
Http2SolrClient.Builder(baseUrl).maxConnectionsPerHost(32).build();
Review Comment:
In the original method there were some basic settings set for the new
client, and I wanted to keep as much of them as I could. This was the only one
for which I have found a corresponding setting, so I set it to 32 as it was
before. You can see it here:
https://github.com/apache/solr/blob/5ebc3776d6aeafc9ecdd74226380f2fc9e438365/solr/core/src/java/org/apache/solr/util/SolrCLI.java#L624
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]