httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <r...@imdb.com>
Subject Bug in chunked encoding in Apache 1.2.4 (fwd)
Date Fri, 02 Jan 1998 18:21:58 GMT

---------- Forwarded message ----------
Date: Wed, 31 Dec 1997 18:08:15 -0500
From: Henrik Frystyk Nielsen <frystyk@w3.org>
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 .
        <HTML><HEAD>
        <TITLE>302 Moved Temporarily</TITLE>
        </HEAD><BODY>
        <H1>Moved Temporarily</H1>
        The document has moved <A
HREF="http://www.w3.org/Jigsaw/User/api/w3c.cvs.CVS.html">here</A>.<P>
        </BODY></HTML>
        .
        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
        <TITLE>302 Moved Temporarily</TITLE>	<- Note the missing <HTML>
        </HEAD><BODY>				<- and <HEAD> (10 chars).
        <H1>Moved Temporarily</H1>
        The document has moved <A
HREF="http://www.w3.org/Jigsaw/User/api/w3c.cvs.CVS.html">here</A>.<P>
        </BODY></HTML>
        .
        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


Mime
View raw message