mirror of https://github.com/apache/lucene.git
SOLR-5866: UpdateShardHandler needs to use the system default scheme registry to properly handle https via javax.net.ssl.* properties
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1577971 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
68b3675ce8
commit
4e38601baf
|
@ -175,6 +175,9 @@ Bug Fixes
|
|||
* SOLR-5867: OverseerCollectionProcessor isn't properly generating https urls in some
|
||||
cases. (Steve Davids via shalin)
|
||||
|
||||
* SOLR-5866: UpdateShardHandler needs to use the system default scheme registry to
|
||||
properly handle https via javax.net.ssl.* properties. (Steve Davids via shalin)
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
* SOLR-1880: Distributed Search skips GET_FIELDS stage if EXECUTE_QUERY
|
||||
|
|
|
@ -23,6 +23,7 @@ import java.util.concurrent.Executors;
|
|||
import org.apache.http.client.HttpClient;
|
||||
import org.apache.http.conn.ClientConnectionManager;
|
||||
import org.apache.http.impl.conn.PoolingClientConnectionManager;
|
||||
import org.apache.http.impl.conn.SchemeRegistryFactory;
|
||||
import org.apache.solr.client.solrj.impl.HttpClientUtil;
|
||||
import org.apache.solr.common.SolrException;
|
||||
import org.apache.solr.common.params.ModifiableSolrParams;
|
||||
|
@ -45,7 +46,7 @@ public class UpdateShardHandler {
|
|||
|
||||
public UpdateShardHandler(ConfigSolr cfg) {
|
||||
|
||||
clientConnectionManager = new PoolingClientConnectionManager();
|
||||
clientConnectionManager = new PoolingClientConnectionManager(SchemeRegistryFactory.createSystemDefault());
|
||||
clientConnectionManager.setMaxTotal(cfg.getMaxUpdateConnections());
|
||||
clientConnectionManager.setDefaultMaxPerRoute(cfg.getMaxUpdateConnectionsPerHost());
|
||||
|
||||
|
|
Loading…
Reference in New Issue