Return-Path: X-Original-To: apmail-hc-httpclient-users-archive@www.apache.org Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0C5DC10108 for ; Fri, 20 Sep 2013 18:12:05 +0000 (UTC) Received: (qmail 29098 invoked by uid 500); 20 Sep 2013 18:12:04 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 28738 invoked by uid 500); 20 Sep 2013 18:12:02 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 28713 invoked by uid 99); 20 Sep 2013 18:12:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Sep 2013 18:12:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_FRT_STOCK2 X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of awang@netflix.com designates 209.85.214.47 as permitted sender) Received: from [209.85.214.47] (HELO mail-bk0-f47.google.com) (209.85.214.47) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Sep 2013 18:11:53 +0000 Received: by mail-bk0-f47.google.com with SMTP id mx12so323554bkb.20 for ; Fri, 20 Sep 2013 11:11:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netflix.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=WmVR36CIwS465mIqdfTHk6FdRjK9XwItVG3FwFNVJyM=; b=I6aTnSNCsSniFaiga7sUHgMzFQhCz5z8dKS7j+TeHo2g/Ci6+ymk/u8my0u73YurYm J7S2VvmJBVnTsMEXCZk49Un/vxDZCjsL5Nwh97XC1WD5G8VRlA6geVAarpqJMnpNpsl2 8wRZziEN5KxOb6tdIQKaYJTugUZqliJxvRqg4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=WmVR36CIwS465mIqdfTHk6FdRjK9XwItVG3FwFNVJyM=; b=hUiDc52XxR3ZimdMqam9ikQFDySSjV/B+T66Xb+uz5sVs7U1iUpzJ1lTjMHUFjvurP NUA1AY0bdZsBCu+UBqeEWFkPPdbFywnlad6cz46yukv+/fXim1a2JqvVf3hSKH9Nli8C oLtzJ9R0Gv4U77MO2DxH9SbIs+vD/dH1xKU86ilqDBVkeB/NuussEa8KoIcU76jtFlI7 K7gDyB5NPvQoAWe4mH2QH+kuoCK6znx6Zmc3cl4565is0q5dG5z6M/c5YFz1S31Oztrg HMWLNiiDu/Kfn/Xi0JJMA/I4b2JplYEBnrvuJQyXIvQJCixRAtlXMQbYHdnHh3Zb9tNm mLKA== X-Gm-Message-State: ALoCoQkhJoHhC202YgrxPSvwJNRL8ndPY3UGBnIiCx5IYbWtvY+eCLt5G+4Q/a0N9Qk+fYPhLm55 MIME-Version: 1.0 X-Received: by 10.204.226.71 with SMTP id iv7mr2206876bkb.32.1379700692793; Fri, 20 Sep 2013 11:11:32 -0700 (PDT) Received: by 10.205.33.5 with HTTP; Fri, 20 Sep 2013 11:11:32 -0700 (PDT) In-Reply-To: <1379682052.2778.6.camel@ubuntu> References: <1379682052.2778.6.camel@ubuntu> Date: Fri, 20 Sep 2013 11:11:32 -0700 Message-ID: Subject: Re: Setting socket read timeout for HttpAsyncClient 4.0-beta4 but not getting exception From: Allen Wang To: HttpClient User Discussion Content-Type: multipart/alternative; boundary=485b3970d160b10dc004e6d49936 X-Virus-Checked: Checked by ClamAV on apache.org --485b3970d160b10dc004e6d49936 Content-Type: text/plain; charset=ISO-8859-1 >From the JIRA, looks like it is fixed in trunk and will be in the final release. When can I get access to it? Allen On Fri, Sep 20, 2013 at 6:00 AM, Oleg Kalnichevski wrote: > On Thu, 2013-09-19 at 15:04 -0700, Allen Wang wrote: > > Hello, > > > > I tried to set 2 seconds socket read timeout for HttpAsyncClient using > the > > following code: > > > > RequestConfig requestConfig = RequestConfig.custom() > > > > .setConnectTimeout(2000) > > > > .setSocketTimeout(2000) > > > > .build(); > > > > httpclient = > > HttpAsyncClients.custom().setDefaultRequestConfig(requestConfig).build(); > > > > httpclient.start(); > > > > Then I tried to hit a localhost REST point where it waits 10 seconds > before > > responding. However, I am not getting any exception on the FutureCallback > > listener I passed into the HttpAsyncClient(HttpUriRequest, > > FutureCallback) call. > > > > Allen, > > This must be the same issue as HTTPASYNC-55. I am working on a fix. > > https://issues.apache.org/jira/browse/HTTPASYNC-55 > > Oleg > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org > For additional commands, e-mail: httpclient-users-help@hc.apache.org > > --485b3970d160b10dc004e6d49936--