Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 75122 invoked from network); 15 Jun 2007 19:49:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Jun 2007 19:49:45 -0000 Received: (qmail 23839 invoked by uid 500); 15 Jun 2007 19:49:44 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 23793 invoked by uid 500); 15 Jun 2007 19:49:44 -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 23782 invoked by uid 99); 15 Jun 2007 19:49:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jun 2007 12:49:44 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [194.187.76.132] (HELO jes-fe1.zx.nl) (194.187.76.132) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jun 2007 12:49:40 -0700 Received: from [10.122.94.231] ([80.187.157.74]) by jes-fe1.zx.nl (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JJP00FT30E5PQ90@jes-fe1.zx.nl> for dev@tomcat.apache.org; Fri, 15 Jun 2007 21:49:18 +0200 (CEST) Date: Fri, 15 Jun 2007 21:49:16 +0200 From: Filip Hanik - Dev Lists Subject: Re: Proposed simplification of CometEvent In-reply-to: <4672E788.6020104@hanik.com> To: Tomcat Developers List Message-id: <4672ED3C.5060106@hanik.com> MIME-version: 1.0 Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8BIT References: <46681613.4040903@apache.org> <96e4b5230706111147w1d06043ew6b041453139778c@mail.gmail.com> <4670288F.10605@hanik.com> <96e4b5230706131217i61fa1a3cl33ea30407b62962c@mail.gmail.com> <46704E0D.4000708@hanik.com> <96e4b5230706131702s69f1f198s127ab1975d661a88@mail.gmail.com> <467192BF.1050607@hanik.com> <96e4b5230706141433m6fb4221l19fa3f660193993c@mail.gmail.com> <4672B9D5.60804@hanik.com> <4672BD2B.5060809@apache.org> <96e4b5230706151112g26fe7a63ic9234d6b1358325d@mail.gmail.com> <4672E788.6020104@hanik.com> User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) X-Virus-Checked: Checked by ClamAV on apache.org since we are getting pretty far off track here, I've started a Wiki page on what comet is and isn't. http://wiki.apache.org/tomcat/WhatIsComet It will be helpful in the future, or we can assimilate this into our docs eventually, but for now, I think it is a good drawing board to clear out things as we agree on them Filip Filip Hanik - Dev Lists wrote: > Costin Manolache wrote: >> Ok, so let me double check: the low level socket in sandbox is >> allways read >> after a poll() / select(), >> and never with a blocking read() ? > huh? :) > >> >> After the poll(): the Comet servlet, in a tomcat thread will be able >> to call >> read() in the input >> stream, and that will return data or 0 if no more data is available ( >> or - >> call isReadable() and then read(), >> or whatever else - but the socket will not be put in blocking mode ) ? > and some more huh :) > > it is an implementation detail if the socket is blocking or non > blocking, and has nothing to do > with read() returning 0 or not. > > now we are talking about the implementation, not the API. I can > implement inputstream.read() to return 0 on both blocking and non > blocking sockets. > btw, for the NIO connector, we only have non blocking sockets, the API > is an abstraction from the socket layer, > >> >> If this is true for sandbox - big +1. > not sure how the above relates to sandbox or trunk, since they use the > same sockets the same way. > Filip >> >> Costin >> >> On 6/15/07, Remy Maucherat wrote: >>> >>> Filip Hanik - Dev Lists wrote: >>> > Please note, that neither Remy nor I have yet really talked about non >>> > blocking reads, so you might think sandbox is non blocking, well >>> it is >>> not. >>> > It is buffering, but not non blocking. a true non blocking read, >>> would >>> > require a rewrite of all the buffer filters to keep state between >>> read >>> > invocations. >>> >>> It is non blocking, as the low level read is always non blocking (in >>> the >>> sandbox design). >>> >>> Rémy >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org >>> For additional commands, e-mail: dev-help@tomcat.apache.org >>> >>> >> ------------------------------------------------------------------------ >> >> No virus found in this incoming message. >> Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: >> 269.8.15/848 - Release Date: 6/13/2007 12:50 PM >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org > For additional commands, e-mail: dev-help@tomcat.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org