tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: TCK Issue with Tomcat 5.5.12
Date Thu, 22 Dec 2005 21:21:49 GMT

"Remy Maucherat" <remm@apache.org> wrote in message 
news:43AB1744.8030506@apache.org...
> Bill Barker wrote:
>> Tomcat handles it much the same way for for a 404 ;-).
>>
>> However, I'm guessing that Httpd sets up an EOS-only bucket-brigade (but 
>> am not interested enough to look it up :), so that if the target existed 
>> and tried to read the body they would just get EOS.
>>
>> Given that the request is malformed under RFC1945, so Tomcat probably 
>> should do the same thing (which is basically what Remy's patch does).
>
> What patch ? Removing this line ? (I guess it doesn't hurt: if no content 
> delimitation, assume no body was sent in all cases)
>

That's the one.  It can't break a working HTTP/1.0 client, since they are 
required to send C-L for a POST.

>         if (!contentDelimitation) {
>             // If there's no content length and we're using keep-alive
>             // (HTTP/1.0 with keep-alive or HTTP/1.1), assume
>             // the client is not broken and didn't send a body
> >>>>>>>>>>            if (keepAlive) {
>                 inputBuffer.addActiveFilter
>                     (inputFilters[Constants.VOID_FILTER]);
>                 contentDelimitation = true;
>             }
>         }
>
>
> Rémy 




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message