Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 43153 invoked from network); 3 Feb 2010 10:01:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Feb 2010 10:01:50 -0000 Received: (qmail 14558 invoked by uid 500); 3 Feb 2010 10:01:50 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 14493 invoked by uid 500); 3 Feb 2010 10:01:50 -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 14482 invoked by uid 99); 3 Feb 2010 10:01:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Feb 2010 10:01:50 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: unknown ipv4:213.46.255.15/27 (nike.apache.org: encountered unrecognized mechanism during SPF processing of domain of odi@odi.ch) Received: from [62.179.121.37] (HELO viefep17-int.chello.at) (62.179.121.37) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Feb 2010 10:01:40 +0000 Received: from edge02.upcmail.net ([192.168.13.237]) by viefep17-int.chello.at (InterMail vM.7.09.01.00 201-2219-108-20080618) with ESMTP id <20100203100119.VHTU18409.viefep17-int.chello.at@edge02.upcmail.net> for ; Wed, 3 Feb 2010 11:01:19 +0100 Received: from gollum.odi.ch ([80.219.169.61]) by edge02.upcmail.net with edge id dN1H1d07G1KpYl402N1KNq; Wed, 03 Feb 2010 11:01:19 +0100 X-SourceIP: 80.219.169.61 Received: from [10.11.1.224] (cvs.logobject.ch [81.7.230.226]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by gollum.odi.ch (Postfix) with ESMTPSA id BC473302AFA for ; Wed, 3 Feb 2010 11:01:17 +0100 (CET) Message-ID: <4B69496B.5090600@odi.ch> Date: Wed, 03 Feb 2010 11:01:15 +0100 From: =?UTF-8?B?T3J0d2luIEdsw7xjaw==?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: HttpComponents Project Subject: Re: Controlling "acceptance" of connections References: <4B68F7F0.2030101@apache.org> <4B693140.50601@odi.ch> <4B693C75.3020001@apache.org> <1265191113.7256.29.camel@ubuntu> In-Reply-To: <1265191113.7256.29.camel@ubuntu> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 03.02.2010 10:58, Oleg Kalnichevski wrote: > I think NIO should work quite similarly. A selectable channel can be > marked as OP_ACCEPT ready, but that does not mean the connection > listener must accept that connection or accept it immediately. In theory yes. But you get the ACCEPT ready *once* only. So if you ignore it, you forget that a channel was ready and you can end up never accepting it. So not registering for OP_ACCEPT in the first place when you can't handle new sockets is a must. Odi --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org