Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 54195 invoked from network); 21 Apr 2009 12:38:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Apr 2009 12:38:05 -0000 Received: (qmail 8400 invoked by uid 500); 21 Apr 2009 12:38:04 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 8351 invoked by uid 500); 21 Apr 2009 12:38:04 -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 8341 invoked by uid 99); 21 Apr 2009 12:38:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Apr 2009 12:38:04 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [92.42.190.144] (HELO ok2cons2.nine.ch) (92.42.190.144) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Apr 2009 12:37:55 +0000 Received: by ok2cons2.nine.ch (Postfix, from userid 1000) id 167F54BA499; Tue, 21 Apr 2009 14:37:36 +0200 (CEST) Date: Tue, 21 Apr 2009 14:37:36 +0200 From: Oleg Kalnichevski To: HttpClient User Discussion Subject: Re: HttpClient performance Message-ID: <20090421123736.GA30775@ok2cons2.nine.ch> Mail-Followup-To: HttpClient User Discussion References: <0F4309A75967A944A1E3C19469796698CBCB536937@MXAMU12.adm.ds.fhnw.ch> <20090402074938.GA23917@ok2consulting.com> <0F4309A75967A944A1E3C19469796698CBCB5369CA@MXAMU12.adm.ds.fhnw.ch> <20090402085532.GA12861@ok2consulting.com> <20090402100535.GA19663@ok2consulting.com> <23141362.post@talk.nabble.com> <20090421105500.GC28158@ok2cons2.nine.ch> <23154949.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <23154949.post@talk.nabble.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Apr 21, 2009 at 05:26:06AM -0700, HockeyDave wrote: > > I wouldn't want to. I'm not pointing out that anything is wrong with > HttpCore. I'm just pointing out that your test case has a problem in its > code. > I am not sure I understand what test case you are referring to. > This test case code will throw a nullpointerexception when you fail to > receive a response so maybe you'll want to protect your test case by > checking to ensure that you actually got a response before you call > connStrategy.keepAlive(response, context). > > i.e. if you don't get a response, there obviously won't be any headers in > the response to tell you to keep-alive or not. HttpRequestExector will never return a null HttpResponse object. If there is any problem of any sort, either IOException or HttpException will be thrown. Oleg > > I think that the proper course would be to optimistically keep it alive. > -- > View this message in context: http://www.nabble.com/HttpClient-performance-tp22838346p23154949.html > Sent from the HttpClient-User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org > For additional commands, e-mail: httpclient-users-help@hc.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org