Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 65644 invoked from network); 3 Apr 2006 13:34:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Apr 2006 13:34:46 -0000 Received: (qmail 59157 invoked by uid 500); 3 Apr 2006 13:34:36 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 58248 invoked by uid 500); 3 Apr 2006 13:34:33 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 58237 invoked by uid 99); 3 Apr 2006 13:34:33 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Apr 2006 06:34:33 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of David.Delbecq@oma.be designates 193.190.231.71 as permitted sender) Received: from [193.190.231.71] (HELO bonnie.oma.be) (193.190.231.71) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Apr 2006 06:34:33 -0700 Received: from [193.190.249.120] (bonnie.oma.be [193.190.231.71]) by bonnie.oma.be (8.11.1 (Revision 1.5) /8.11.1) with ESMTP id k33DYBd19368 for ; Mon, 3 Apr 2006 13:34:11 GMT Message-ID: <4431242B.4010200@oma.be> Date: Mon, 03 Apr 2006 15:33:31 +0200 From: David Delbecq User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: fr, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Rephrased: Maximum number of simultaneous HTTP connections References: <4430F86B.2080503@weboperations.com> <44314702.60501@gmail.com> <6d959d480604030403w3ecf9720xd7fb469ff1d8d11c@mail.gmail.com> <443104D6.9070206@weboperations.com> <6d959d480604030441o6597f85cn556dfb6ab1bea086@mail.gmail.com> <44311B5D.2090503@weboperations.com> In-Reply-To: <44311B5D.2090503@weboperations.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > > Here a diagram: > > Client sends GET -> Server > Server sends HEADERS (Content Encoding: Chunked) -> Client > Server sends chunks -> Client > Client displays them whenever they arrive. Just one point. If your 'client' is a classical browser it won't work like this out of the box, for the simple reason you have no guarantee the client will do any display before it receive There are provisition in http standard for a progressive display of a page. I can't remember like that the references in http 1.1 specs, just give it a look. It's based on a server pushing of page refreshes on a keep-alive connection. But it need special headers. > > I could just remember the HttpRespone Objects and use one thread, > which gets, when new messages arrive in the queue. The thread then > could println() them to all he HttpRespones. This would save me all > the Threads. Hmm, sounds good, or have I missed somthing?! Yes, one thing, when doGet() returns, the container *could* close the connection. (This is tomcat internal dependent and should not be assumed as deterministic). As a side note, as stated by other people already, you should probably write your own standalone application if you intend to keep all connections alive for your chat. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org