Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 59640 invoked from network); 23 Jun 2008 18:30:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jun 2008 18:30:00 -0000 Received: (qmail 43881 invoked by uid 500); 23 Jun 2008 18:30:01 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 43862 invoked by uid 500); 23 Jun 2008 18:30:01 -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 43851 invoked by uid 99); 23 Jun 2008 18:30:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jun 2008 11:30:00 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [217.150.250.44] (HELO ok2consulting.nine.ch) (217.150.250.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jun 2008 18:29:10 +0000 Received: by ok2consulting.nine.ch (Postfix, from userid 1002) id 5229C198492; Mon, 23 Jun 2008 20:29:27 +0200 (CEST) Received: from [192.168.1.100] (84-75-129-240.dclient.hispeed.ch [84.75.129.240]) by ok2consulting.nine.ch (Postfix) with ESMTP id CD60E198490 for ; Mon, 23 Jun 2008 20:29:26 +0200 (CEST) Subject: Re: isStale() From: Oleg Kalnichevski To: HttpClient User Discussion In-Reply-To: <1f3854d50806231109p19a3b13cpfb3e5d2c289055e0@mail.gmail.com> References: <1f3854d50806201607r7b7a96fax37704f8242340799@mail.gmail.com> <1214043865.6134.10.camel@ubuntu> <1f3854d50806210917i76431ed7w3588108b9a2bacfd@mail.gmail.com> <1214071686.6015.17.camel@ubuntu> <1f3854d50806211138v15fdb9c0l7fe2e38e839f20be@mail.gmail.com> <485E21B4.3050707@apache.org> <1f3854d50806220810g2a3ec480t7d44f2ec7fb9adf1@mail.gmail.com> <1214150027.24597.9.camel@ubuntu> <1f3854d50806220913tde15151re8ba603ab05650fe@mail.gmail.com> <1214243768.6025.15.camel@ubuntu> <1f3854d50806231109p19a3b13cpfb3e5d2c289055e0@mail.gmail.com> Content-Type: text/plain; charset=utf-8 Date: Mon, 23 Jun 2008 20:29:27 +0200 Message-Id: <1214245767.6025.38.camel@ubuntu> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on ok2consulting.nine.ch X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=ham version=3.0.3 On Mon, 2008-06-23 at 20:09 +0200, Quintin Beukes wrote: ... > Is there any way to do connection management with the NIO module? I've > been looking around and can't really find a single way, other that > re-implementing the whole IO reactor class set, down as far as > ChannelEntry, AbstractMultiworkerIOReactor, etc. This is almost > reimplementing HttpCore-NIO. > > If this is true, I can jump in and modify the CVS/SVN tree, to make it > possible to do connection management, and submit the changes? > Absolutely. However, let's discuss the high level architecture first to make sure we are all on the same page. Several projects, LimeWire and Synapse, could potentially be interested in a generic NIO connection management API and an implementation. We should take this discussion to the dev list, though Cheers Oleg > Q > > On 6/23/08, Oleg Kalnichevski wrote: > > On Sun, 2008-06-22 at 18:13 +0200, Quintin Beukes wrote: > > > > > I figure I'd take your advice and get this thing running for > > > Wednesday. I don't know how HttpClient does this, but I figure I'd > > > just force make a new connection on the second try :/ > > > > > > > > > Quintin, > > > > You can keep track of how low a connection has been idle and drop only > > those connections that have been idle for too long and may have been > > closed on the server side. This is what I would have done in your > > situation. > > > > > > Oleg > > > > > > > > > > > > > > --------------------------------------------------------------------- > > 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