Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-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 1C524D9DA for ; Fri, 29 Jun 2012 08:05:40 +0000 (UTC) Received: (qmail 84547 invoked by uid 500); 29 Jun 2012 08:05:39 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 84001 invoked by uid 500); 29 Jun 2012 08:05:35 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 83937 invoked by uid 99); 29 Jun 2012 08:05:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2012 08:05:34 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [212.27.42.1] (HELO smtp1-g21.free.fr) (212.27.42.1) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2012 08:05:28 +0000 Received: from [IPv6:2a01:e35:2e61:c370:21c:bfff:fe41:2e3f] (unknown [IPv6:2a01:e35:2e61:c370:21c:bfff:fe41:2e3f]) by smtp1-g21.free.fr (Postfix) with ESMTP id C8FBF940131 for ; Fri, 29 Jun 2012 10:05:03 +0200 (CEST) Message-ID: <1340957102.1681.36.camel@mail.remm.hd.free.fr> Subject: Re: non blocking API From: Remy Maucherat To: dev@tomcat.apache.org Date: Fri, 29 Jun 2012 10:05:02 +0200 In-Reply-To: <007401cd5581$bcb76490$36262db0$@hanik.com> References: <007401cd5581$bcb76490$36262db0$@hanik.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.3 (3.4.3-1.fc17) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit On Thu, 2012-06-28 at 16:59 -0600, Filip Hanik (mailing lists) wrote: > I posted some feedback to the expert group: > > http://java.net/projects/servlet-spec/lists/users/archive/2012-06/message/15 You can find all the discussions about the API in the archive, which hopefully explain nearly all of the items: http://java.net/projects/servlet-spec/lists/jsr340-experts/archive (summary: reuse of existing API, efficiency, user simplicity) As for the flags without listeners, it is the regular blocking IO, no polling occurs (so ready + canWrite are false; in theory ready could be true if there's something in the servlet buffer). The flag definition is actually rather precise already (returns false if it may block), but there's additional wording which will be added later. So, sorry about the "bad" result, but that's the least worst the EG could come up with so far, after considering all API styles (I believe). Rémy --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org