On 24 Nov 2012, at 23:59, Will wrote:

> I was wondering how httpd handles POST requests to cgi.  Does it stream the 
> body directly from the client to the cgi program?  If this is the case, what 
> would be the downsides to streaming that to a file first and going from the 
> file (most likely filesystem cache) to the stdin of the cgi program?  I think 
> the obvious pro would be the cgi program would be open for a much shorter 
> time.

You could achieve that with an input filter that collects all POST data for
a request into a file, and returns it to the caller as a file bucket.  The
drawback is that it breaks pipelining the POST data, but perhaps that's
not an issue for you.

-- 
Nick Kew

Reply via email to