hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "A. Diamond (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HTTPASYNC-4) DefaultHttpAsyncClient does not execute callbacks on timeout
Date Thu, 07 Jul 2011 19:32:16 GMT
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

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

View raw message