httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <>
Subject Re: Limiting response body length
Date Mon, 12 Feb 2007 23:09:12 GMT
On Mon, 12 Feb 2007 23:35:24 +0100
Henrik Nordstrom <> wrote:

> mån 2007-02-12 klockan 21:55 +0000 skrev Nick Kew:
> > Because the chunking filter is equipped to discard the chunk that
> > takes it over the limit, and substitute end-of-chunking.
> > If we do that in a new filter, we have to reinvent that wheel.
> Not sure substitue "end-of-chunking" is a reasonable thing here. It's
> an abort condition, not an EOF condition. Imho you'd better abort the
> flow, that way telling the client that the request failed instead of
> silently truncating the response.

How would you abort it other than by truncating it?
Don't forget, the headers are long gone.

If you don't send an end-marker, the client will
sit there waiting for more.

Nick Kew

Application Development with Apache - the Apache Modules Book

View raw message