Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 6574 invoked by uid 6000); 2 Jan 1998 18:56:22 -0000 Received: (qmail 6566 invoked from network); 2 Jan 1998 18:56:20 -0000 Received: from uk1.imdb.com (@192.68.174.59) by taz.hyperreal.org with SMTP; 2 Jan 1998 18:56:20 -0000 Received: from robh.imdb.com [194.222.68.23] by uk1.imdb.com with esmtp (Exim 1.62 #1) id 0xoC4d-0003Pd-00; Fri, 2 Jan 1998 18:44:02 +0000 Date: Fri, 2 Jan 1998 18:21:58 +0000 (GMT) From: Rob Hartill X-Sender: robh@localhost To: Apache Group Subject: Bug in chunked encoding in Apache 1.2.4 (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org ---------- Forwarded message ---------- Date: Wed, 31 Dec 1997 18:08:15 -0500 From: Henrik Frystyk Nielsen To: apache-bugs@apache.org Subject: Bug in chunked encoding in Apache 1.2.4 I believe I have found a bug in the Apache chunked encoding code which makes my robot [1] rather confused as it misses the End Of Message marker in a pipelined stream. The problem is that parts of a chunked length line and the data following gets overwritten with spaces. Check out this sample, which I consistently run into (obtained using tcpshow on the trace that I give a pointer to below). Although it doesn't look like it, it's the response to three different URLs on the http://www.w3.org server (my comments are to the right (<-): HTTP/1.1 302 Moved Temporarily. <- First Response (OK) Date: Wed, 31 Dec 1997 20:44:08 GMT. Server: Apache/1.2.4. Location: http://www.w3.org/Jigsaw/User/api/w3c.cvs.CVS.html. Transfer-Encoding: chunked. Content-Type: text/html. . cb . 302 Moved Temporarily

Moved Temporarily

The document has moved here.

. 0. . HTTP/1.1 302 Moved Temporarily. <- Second response Date: Wed, 31 Dec 1997 20:44:08 GMT. Server: Apache/1.2.4. Location: http://www.w3.org/Jigsaw/User/api/w3c.cvs.CVS.html. Transfer-Encoding: chunked. Content-Type: text/html. . ----------------------------------------------------------------- 18.23.0.23.80 -> 18.29.0.26.36954 over TCP cb . <- Note the 10 extra spaces 302 Moved Temporarily <- Note the missing <- and (10 chars).

Moved Temporarily

The document has moved here.

. 0. . HTTP/1.1 200 OK. Date: Wed, 31 Dec 1997 20:44:08 GMT. Server: Apache/1.2.4. Last-Modified: Thu, 31 Jul 1997 11:23:58 GMT. ETag: "2d719e-54ed-33e075ce". Content-Length: 21741. Accept-Ranges: bytes. Content-Type: text/html; charset=ISO-8859-1. . I have to the complete tcpdump output available at http://www.w3.org/Protocols/HTTP/Performance/Apache/apache.tcpdump One other thing, what is the reason for a default value of 100 requests pr. TCP connection? I would have chosen at least 500. Hope this helps, Henrik [1] http://www.w3.org/Library/ -- Henrik Frystyk Nielsen, World Wide Web Consortium http://www.w3.org/People/Frystyk