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 2011/07/11 15:51:59 UTC
[jira] [Resolved] (HTTPASYNC-4) DefaultHttpAsyncClient does not
execute callbacks on timeout
[ https://issues.apache.org/jira/browse/HTTPASYNC-4?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski resolved HTTPASYNC-4.
---------------------------------------
Resolution: Fixed
I committed a fix to the SVN trunk. Could you please re-test your application against the latest snapshot and confirm the fix?
Oleg
> DefaultHttpAsyncClient does not execute callbacks on timeout
> ------------------------------------------------------------
>
> Key: HTTPASYNC-4
> URL: https://issues.apache.org/jira/browse/HTTPASYNC-4
> Project: HttpComponents HttpAsyncClient
> Issue Type: Improvement
> Affects Versions: 4.0-alpha2
> Environment: Max OS X 10.6.7, Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)
> Reporter: A. Diamond
> Fix For: 4.0-alpha3
>
>
> When I pass a FutureCallback to be executed with an HttpRequest, I can specify handlers for completed, cancelled and failed.
> Unfortunately, if the request fails because the server does not respond in time, the "failed" handler of the FutureCallback never gets notified. It looks like the timeout method in org.apache.http.impl.nio.client.NHttpClientProtocolHandler simply closes the connection and returns.
> We would like to be able to handle requests that timed out-- either logging them or queuing them for later retries.
> Is it possible to fire the "failed" callback with an exception indicating timeout?
--
This message is automatically generated by JIRA.
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