Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 70543 invoked from network); 26 May 2007 02:04:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 May 2007 02:04:38 -0000 Received: (qmail 15733 invoked by uid 500); 26 May 2007 02:04:30 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 15709 invoked by uid 500); 26 May 2007 02:04:30 -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 15698 invoked by uid 99); 26 May 2007 02:04:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 May 2007 19:04:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [68.142.200.128] (HELO web30605.mail.mud.yahoo.com) (68.142.200.128) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 25 May 2007 19:04:24 -0700 Received: (qmail 7928 invoked by uid 60001); 26 May 2007 02:04:02 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=p96nukm1SNgzfAuPdGjaawpaTIMZYuDobKsdTU8pviMjrR0LVsYgDLCUmfw+wo6ICdCR/vQ+mAfuez3+nUnV/hD+DxsSaxEiTnsDAMas/O6rcqoNmsaZGlesSWwEy6Fyaz9HMa5/mHqsjg8D9sRIwFPBiB0z2hcpuwh9FfvvWZE=; X-YMail-OSG: iPApuM0VM1kAfl8uirwMgisfGJgxcBdRXpXcJfOLdxQyX5A5nJyeg72ilyrsXwoLe.G8wmAuCm0.0PJ0g8_zpbydj8nbLWrv7WDXJkL1y5q8k_2D1_w.IHOsQs2IyQ-- Received: from [209.191.119.133] by web30605.mail.mud.yahoo.com via HTTP; Fri, 25 May 2007 19:04:02 PDT X-Mailer: YahooMailRC/651.23.1 YahooMailWebService/0.7.41.14 Date: Fri, 25 May 2007 19:04:02 -0700 (PDT) From: Matt Cosentino Subject: Re: Erratic HTTP response behavior To: Tomcat Users List MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Message-ID: <637467.7758.qm@web30605.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Actually, it did look like that, the "\r\n" codes were removed for some reason when I sent the email. ----- Original Message ---- From: Bill Barker To: users@tomcat.apache.org Sent: Friday, May 25, 2007 8:12:04 PM Subject: Re: Erratic HTTP response behavior "Christopher Schultz" wrote in message news:46574F02.4030009@christopherschultz.net... > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Matt, > > You're right, this /is/ erratic behavior. I think something is going > wrong with your headers or something: > > Matt Cosentino wrote: >> 0 HTTP/1.1 200 OKServer: >> Apache-Coyote/1.1Transfer-Encoding: chunkedDate: Fri, 18 May 2007 >> 22:35:13 GMT > > Your response headers appear to be after the body of the response. > Either that or the headers I see there are supposed to be the headers > from the next chunk and/or request in a keepalive request. > Indeed :). This is the start of the next response in the pipeline, and should look like: 0 HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Transfer-Encoding: chunked Date: Fri, 18 May 2007 22:35:13 GMT It looks like some 'friendly' intermediate is compressing out the "\r\n" codes that are needed to interpret 'chunked'. To not use 'chunked', you have to set the Content-Length yourself (or have only very small pages and don't call flush). If your pages aren't too huge, and you don't have too high of concurrency, it is pretty easy to write a Filter that wraps the response to hold the output in memory until it is all there, and then set the Content-Length before passing it back to the browser. > Are you intending to use "chunked" responses? 'Cause it looks like they > are being used. There was some in-depth discussion of chunked responses > somewhat recently on the list. Perhaps you could take a look at that for > some reference points (but I'm not saying that it will solve your > problem). > > I think the problem might be that you are getting chunked encoding for > some reason, but you don't really want it. > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFGV08C9CaO5/Lv0PARArfQAJoD+kMZLUVWthGyRuv0NWKIKSuXcACfYh+I > sJuvF8+a8MgIcIu3gd1hGak= > =u9oS > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org ____________________________________________________________________________________ Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. http://farechase.yahoo.com/promo-generic-14795097 --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org