"Remy Maucherat" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to