httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Fritsch ...@sfritsch.de>
Subject Re: C as config
Date Sun, 06 Jun 2010 18:53:03 GMT
On Sunday 06 June 2010, Brian Pane wrote:
> On Sun, Jun 6, 2010 at 5:03 AM, Graham Leggett <minfrin@sharp.fm>
> wrote: [...]
> 
> > We've also been playing with Varnish, one of the cooler things it
> > does is have the ability to suck up an entire response into a
> > RAM buffer and releasing the backend before playing out the
> > response to the browser. I've looked, and we can do this pretty
> > trivially in httpd as a simple connection filter.
> > 
> > Very useful for expensive backends like php, instead of waiting
> > many hundreds or thousands of milliseconds for the client to
> > eventually close the connection before cleaning up the request
> > pool and release php resources, you dump the response into a
> > connection buffer, and destroy the request pool asap.
> 
> That also would work well with the event MPM; in addition to
> freeing up the request pool, you'd be able to free up the request
> thread.
> 
> As long as the documentation explained to users that they need to
> have enough memory to accommodate MaxClient *
> MaxOutputBufferedPerRequest (where the latter is a hypothetical
> name for a configurable limit on the amount of buffered output),
> such a feature would be a net win for lots of sites.

There is already mod_buffer in trunk. From reading the docs, it should 
be suitable for this purpose. Or is it missing some functionality?

As an added feature, one could imagine dumping very large responses 
into a tempfile.

Cheers,
Stefan

Mime
View raw message