You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2013/04/19 14:51:16 UTC
[jira] [Updated] (HTTPCLIENT-1207) Improve extensibility of
DefaultHttpRequestRetryHandler
[ https://issues.apache.org/jira/browse/HTTPCLIENT-1207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski updated HTTPCLIENT-1207:
------------------------------------------
Fix Version/s: (was: 4.3 Final)
4.3 Beta2
> Improve extensibility of DefaultHttpRequestRetryHandler
> -------------------------------------------------------
>
> Key: HTTPCLIENT-1207
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1207
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: HttpClient
> Affects Versions: 4.2 Final
> Reporter: Joshua Spiewak
> Priority: Minor
> Fix For: 4.3 Beta2
>
> Attachments: Enable_sub-classes_to_modify_the_set_of_exceptions_that_are_rejected_for_retry.patch
>
>
> Under certain circumstances, such as when a service is behind a load balancer, it is desirable for a client to retry a request after timeout, rather than simply extending the timeout. This would allow the client to connect to a different service behind the load balancer.
> Currently DefaultHttpRequestRetryHandler rejects four types of Exceptions for retry, including InterruptedIOException, the parent class of SocketTimeoutException. The attached patch collects the Exceptions into a Set, and exposes the Set to sub-classes. This should allow sub-classes to remove InterruptedIOException if they see fit, but still get the benefits of the other logic in retryRequest, without copying the entire class.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org