Welcome! Log In Create A New Profile

Advanced

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

All files from this thread

File Name File Size   Posted by Date  
no_buffer.patch 38.8 KB open | download 姚伟斌 01/13/2013 Read message
100 bytes open | download Weibin Yao 02/26/2013 Read message
no_buffer_v5.patch 39.2 KB open | download Weibin Yao 03/14/2013 Read message
姚伟斌
January 16, 2013 10:18PM
Yes. It should work for any request method.

2013/1/16 Pasi Kärkkäinen <pasik@iki.fi>

> On Sun, Jan 13, 2013 at 08:22:17PM +0800, ?????? wrote:
> > This patch should work between nginx-1.2.6 and nginx-1.3.8.
> > The documentation is here:
>
> > ## client_body_postpone_sending ##
> > Syntax: **client_body_postpone_sending** `size`
> > Default: 64k
> > Context: `http, server, location`
> > If you specify the `proxy_request_buffering` or
> > `fastcgi_request_buffering` to be off, Nginx will send the body to
> backend
> > when it receives more than `size` data or the whole request body has
> been
> > received. It could save the connection and reduce the IO number with
> > backend.
> >
> > ## proxy_request_buffering ##
> > Syntax: **proxy_request_buffering** `on | off`
> > Default: `on`
> > Context: `http, server, location`
> > Specify the request body will be buffered to the disk or not. If it's
> off,
> > the request body will be stored in memory and sent to backend after
> Nginx
> > receives more than `client_body_postpone_sending` data. It could save
> the
> > disk IO with large request body.
> >
> >
> > Note that, if you specify it to be off, the nginx retry
> mechanism
> > with unsuccessful response will be broken after you sent part of the
> > request to backend. It will just return 500 when it encounters such
> > unsuccessful response. This directive also breaks these variables:
> > $request_body, $request_body_file. You should not use these variables
> any
> > more while their values are undefined.
> >
>
> Hello,
>
> This patch sounds exactly like what I need aswell!
> I assume it works for both POST and PUT requests?
>
> Thanks,
>
> -- Pasi
>
>
> > Hello!
> > @yaoweibin
> >
> > If you are eager for this feature, you could try my
> > patch: [2]https://github.com/taobao/tengine/pull/91. This patch
> has
> > been running in our production servers.
> >
> > what's the nginx version your patch based on?
> > Thanks!
> > On Fri, Jan 11, 2013 at 5:17 PM, Ҋΰ±ó <[3]yaoweibin@gmail.com>
> wrote:
> >
> > I know nginx team are working on it. You can wait for it.
> > If you are eager for this feature, you could try my
> > patch: [4]https://github.com/taobao/tengine/pull/91. This patch
> has
> > been running in our production servers.
> >
> > 2013/1/11 li zJay <[5]zjay1987@gmail.com>
> >
> > Hello!
> > is it possible that nginx will not buffer the client body before
> > handle the request to upstream?
> > we want to use nginx as a reverse proxy to upload very very big
> file
> > to the upstream, but the default behavior of nginx is to save
> the
> > whole request to the local disk first before handle it to the
> > upstream, which make the upstream impossible to process the
> file on
> > the fly when the file is uploading, results in much high request
> > latency and server-side resource consumption.
> > Thanks!
> > _______________________________________________
> > nginx mailing list
> > [6]nginx@nginx.org
> > [7]http://mailman.nginx.org/mailman/listinfo/nginx
> >
> > --
> > Weibin Yao
> > Developer @ Server Platform Team of Taobao
> > _______________________________________________
> > nginx mailing list
> > [8]nginx@nginx.org
> > [9]http://mailman.nginx.org/mailman/listinfo/nginx
> >
> > _______________________________________________
> > nginx mailing list
> > [10]nginx@nginx.org
> > [11]http://mailman.nginx.org/mailman/listinfo/nginx
> >
> > --
> > Weibin Yao
> > Developer @ Server Platform Team of Taobao
> >
> > References
> >
> > Visible links
> > 1. mailto:zjay1987@gmail.com
> > 2. https://github.com/taobao/tengine/pull/91
> > 3. mailto:yaoweibin@gmail.com
> > 4. https://github.com/taobao/tengine/pull/91
> > 5. mailto:zjay1987@gmail.com
> > 6. mailto:nginx@nginx.org
> > 7. http://mailman.nginx.org/mailman/listinfo/nginx
> > 8. mailto:nginx@nginx.org
> > 9. http://mailman.nginx.org/mailman/listinfo/nginx
> > 10. mailto:nginx@nginx.org
> > 11. http://mailman.nginx.org/mailman/listinfo/nginx
>
>
> > _______________________________________________
> > nginx mailing list
> > nginx@nginx.org
> > http://mailman.nginx.org/mailman/listinfo/nginx
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



--
Weibin Yao
Developer @ Server Platform Team of Taobao
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

lm011111 January 11, 2013 02:22AM

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

姚伟斌 January 11, 2013 04:18AM

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

lm011111 January 13, 2013 04:02AM

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

姚伟斌 January 13, 2013 07:24AM

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

Pasi Kärkkäinen January 16, 2013 10:16AM

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

姚伟斌 January 16, 2013 10:18PM

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

Pasi Kärkkäinen January 18, 2013 03:40AM

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

Pasi Kärkkäinen February 21, 2013 03:10PM

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

Weibin Yao February 21, 2013 09:08PM

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

Pasi Kärkkäinen February 22, 2013 04:26AM

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

Pasi Kärkkäinen February 22, 2013 05:52AM

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

Weibin Yao February 24, 2013 09:14PM

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

Pasi Kärkkäinen February 25, 2013 05:14AM

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

Weibin Yao February 26, 2013 09:14AM

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

Pasi Kärkkäinen March 05, 2013 08:18AM

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

double March 07, 2013 12:25PM

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

Pasi Kärkkäinen March 07, 2013 12:50PM

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

Pasi Kärkkäinen March 14, 2013 04:46AM

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

Pasi Kärkkäinen March 08, 2013 08:38AM

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

Weibin Yao March 14, 2013 01:18AM

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

Pasi Kärkkäinen March 14, 2013 04:40AM

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

Pasi Kärkkäinen March 20, 2013 01:04PM

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

double February 28, 2013 10:16AM

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

EDevil February 28, 2013 12:38PM

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

Maxim Dounin February 28, 2013 01:14PM

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

double March 05, 2013 06:24AM

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

Pasi Kärkkäinen March 14, 2013 10:14AM

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

Weibin Yao March 18, 2013 12:22AM

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

double April 04, 2013 04:30AM

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

Valentin V. Bartenev February 28, 2013 01:52PM

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

EDevil February 28, 2013 02:04PM

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

Pasi Kärkkäinen March 01, 2013 08:24AM

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

double March 01, 2013 10:17AM

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

daveyfx January 11, 2013 02:31PM

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

double February 26, 2013 04:10PM

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

double April 18, 2013 05:27AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 59
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready