Shawn Heisey created SOLR-7320:
----------------------------------
Summary: SolrJ - add ability to set timeouts at request level
Key: SOLR-7320
URL: https://issues.apache.org/jira/browse/SOLR-7320
Project: Solr
Issue Type: Improvement
Components: clients - java, SolrJ
Affects Versions: 5.0
Reporter: Shawn Heisey
There are sometimes good reasons to have a default set of timeouts for the
httpclient, but utilize a different set of timeouts for individual requests.
You might want to have a 5 minute socket timeout for requests normally, which
you set when you create the HttpClient object that the clients use ... but when
you send an optimize request, or a particularly large update request, five
minutes probably isn't going to be enough -- you might want that request to
have a 30 minute socket timeout instead.
If setting the timeout values is accomplished using parameters in the request
(which get removed before sending to Solr) instead of adding a parameter to
method signatures, then it could be utilized on all request types and even with
a subset of the sugar methods, like SolrClient#query.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]