On Friday 16 August 2002 09:43 pm, Patrick Luby wrote:
<SNIP/>
> Tomcat 4 used to do this conversion correctly but then it stopped doing
> the conversion a few months ago.
>
I'll bet dollars to donuts that it was exactly when Coyote was brought in as 
the connector, replacing the older o.a.c.connector.http.HttpProcessor.
Looking at it, it does a lot more detailed parsing of the HTTP headers while 
receiving the request. Coyote does a lot more lazy evaluation, holding 
everything in MessageBytes for as long as possible. This saves on unnecessary 
object creation and GC. 

> This should be fixed as it is Servlet spec non-compliance. However, I am
> not sure where the parsing of headers is now performed in Tomcat?
>

This shouldn't be handled as part of parsing headers off the wire. I think it 
should probably be handled in org.apache.tomcat.util.http.MimeHeaders, when 
the value, or values, is/are actually requested. 

Header names can be mapped to different content models. This might improve 
performace in getIntHeader and getDateHeader.X-headers and unknown headers 
should probably get mapped to TEXT.



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to