tflobbe commented on code in PR #1046:
URL: https://github.com/apache/solr/pull/1046#discussion_r984037079
##########
solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java:
##########
@@ -519,7 +525,11 @@ private Request makeRequest(SolrRequest<?> solrRequest,
String collection)
private void decorateRequest(Request req, SolrRequest<?> solrRequest) {
req.header(HttpHeader.ACCEPT_ENCODING, null);
- req.timeout(idleTimeout, TimeUnit.MILLISECONDS);
+ if (requestTimeout > 0) {
Review Comment:
I don't think it makes much difference. 0 means timeout disabled, but our
client will only wait for `idleTimeout` (see `listener.get(idleTimeout,
TimeUnit.MILLISECONDS);`), so we'll timeout anyway, and at that point, probably
better to timeout the request, since the client won't consume it anyway. WDYT?
--
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]