Welcome! Log In Create A New Profile

Advanced

Re: proxy_buffer_size values are honored even if proxy_buffering is off

Maxim Dounin
May 08, 2014 09:26PM
Hello!

On Mon, May 05, 2014 at 03:04:22AM +0800, Rv Rv wrote:

> At the http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffer_size, the documentation implies that
> the configuration proxy_buffer_size , proxy_buffers and proxy_busy_buffers will be honored only when proxy_buffering is turned on.

The "proxy_buffering off" implies that response will not be
buffered - that is, everything received from a backend is
immediately sent to a client.

At least one buffer is still required though (nginx have to store
data from a backend somewhere before it will be able to send them
to a client), and proxy_buffer_size defines size of this buffer.

See http://nginx.org/r/proxy_buffering for details.

> I had been seeing truncated responses of files which went away
> when I increased proxy_buffer_size even though proxy_buffering
> was turned off. I am running nginx1.5.8. Is this expected
> behavior ?

No, it's not.

First of all, I would recommend you to take a look into error
logs - it might have an answer.

If it doesn't help, some more debugging hints can be found at
http://wiki.nginx.org/Debugging.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

proxy_buffer_size values are honored even if proxy_buffering is off

Rv Rv May 04, 2014 03:08PM

Re: proxy_buffer_size values are honored even if proxy_buffering is off

Maxim Dounin May 08, 2014 09:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 171
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready