Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 93B3A4848 for ; Thu, 7 Jul 2011 22:26:41 +0000 (UTC) Received: (qmail 85988 invoked by uid 500); 7 Jul 2011 22:26:41 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 85911 invoked by uid 500); 7 Jul 2011 22:26:40 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 85903 invoked by uid 99); 7 Jul 2011 22:26:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2011 22:26:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2011 22:26:38 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BB7434CBAE for ; Thu, 7 Jul 2011 22:26:16 +0000 (UTC) Date: Thu, 7 Jul 2011 22:26:16 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: <229365143.9363.1310077576764.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <674827937.8749.1310067136707.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HTTPASYNC-4) DefaultHttpAsyncClient does not execute callbacks on timeout MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HTTPASYNC-4?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Kalnichevski updated HTTPASYNC-4: -------------------------------------- Fix Version/s: 4.0-alpha3 > 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