hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HTTPCLIENT-1207) Improve extensibility of DefaultHttpRequestRetryHandler
Date Tue, 19 Jun 2012 19:18:43 GMT

     [ 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: 4.3 Final
> 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 Final
>         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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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

View raw message