Is it possible that nginx will not buffer the client body?

Pasi Kärkkäinen pasik at iki.fi
Fri Mar 1 13:22:08 UTC 2013


On Thu, Feb 28, 2013 at 07:02:46PM +0000, André Cruz wrote:
> On Feb 28, 2013, at 6:51 PM, Valentin V. Bartenev <vbart at nginx.com> wrote:
> 
> > On Thursday 28 February 2013 21:36:23 André Cruz wrote:
> >> I'm also very interested in being able to configure nginx to NOT proxy the
> >> entire request.
> >> 
> > [...]
> > 
> > Actually, you can.
> > 
> > http://nginx.org/r/proxy_set_body
> > http://nginx.org/r/proxy_pass_request_body
> 
> I've probably explained myself wrong. What I want is for nginx to buffer only chunks of the request body and pass these chunks to the upstream server as they arrive.
> 

Yes, the problem is nginx saves the request body to the local disk on the nginx server,
filling the disk and making the upload slower.

People want nginx to *not* save the http PUT/POST request to disk when using nginx as a reverse proxy.

-- Pasi



More information about the nginx mailing list