janhoy commented on code in PR #2259:
URL: https://github.com/apache/solr/pull/2259#discussion_r1511450537


##########
solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrJdkClient.java:
##########
@@ -287,6 +278,64 @@ private HttpResponse<InputStream> doPutOrPost(
     return response;
   }
 
+  private volatile boolean headRequested;
+  private volatile boolean headSucceeded;

Review Comment:
   I'm ok with HEAD every time as a start. Then perhaps we can make it more 
clever over time. And if/when JDK improves, we can detect JDK version and 
conditionally force HTTP/2.
   
   This also means we can avoid sending ping in constructor, right?



-- 
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: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to