tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remy Maucherat <>
Subject Re: [5.0] [PROPOSAL] Make output buffer size limit configurable
Date Tue, 15 Jul 2003 07:53:30 GMT
Marc Slemko wrote:
> On Mon, 14 Jul 2003, Jan Luehe wrote:
>>I would have expected it to include a "Content-Length" header. Would you
> It, umh, can't do that for dynamic content without buffering the
> whole response since it doesn't know how long it is.

Not even that does work, actually. The problem occurs if the servlet 
flushes the response before closing it. If that happens, then part of 
the response must be sent right away, regardless of the response state.

I don't know if you've seen that a lot (I have), but a lot of servlet 
authors do, at the end of their servlets, somthing like:
This forces use of chunking (or a connection close in HTTP/1.0 with 

> Hence the main reason for chunked encoding and the requirement
> HTTP/1.1 clients support it.
> Any HTTP/1.1 client must support chunked encoding, if not then it is
> broken and really don't need to be taken into account.  If someone
> doesn't want to support chunked encoding, they shouldn't be making
> HTTP/1.1 requests.

Yes, that's the idea :)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message