Github user janhoy commented on a diff in the pull request:

    https://github.com/apache/lucene-solr/pull/140#discussion_r96840773
  
    --- Diff: 
solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpClientUtil.java ---
    @@ -111,28 +112,46 @@
       // cannot be established within x ms. with a
       // java.net.SocketTimeoutException: Connection timed out
       public static final String PROP_CONNECTION_TIMEOUT = "connTimeout";
    -  
    +
    +  /**
    +   * A Java system property to select the {@linkplain 
HttpClientBuilderFactory} used for
    +   * configuring the {@linkplain HttpClientBuilder} instance by default.
    +   */
    +  public static final String SYS_PROP_HTTP_CLIENT_BUILDER_FACTORY = 
"solr.httpclient.builder.factory";
    +
       static final DefaultHttpRequestRetryHandler NO_RETRY = new 
DefaultHttpRequestRetryHandler(
           0, false);
     
       private static volatile SolrHttpClientBuilder httpClientBuilder;
    -  
    +
       private static SolrHttpClientContextBuilder 
httpClientRequestContextBuilder = new SolrHttpClientContextBuilder();
    -  
    +
    +  private static volatile SchemaRegistryProvider schemaRegistryProvider;
    +  private static volatile String cookiePolicy;
    +  private static final List<HttpRequestInterceptor> interceptors = 
Collections.synchronizedList(new ArrayList<HttpRequestInterceptor>());
    +
    +
       static {
         resetHttpClientBuilder();
    +
    +    // Configure the HttpClientBuilder if user has specified the factory 
type.
    +    String factoryClassName = 
System.getProperty(SYS_PROP_HTTP_CLIENT_BUILDER_FACTORY);
    +    if (factoryClassName != null) {
    +      logger.info ("Using " + factoryClassName);
    --- End diff --
    
    use logger.debug


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to