Welcome! Log In Create A New Profile

Advanced

Re: Proxy Request buffering not working as expected

Francis Daly
November 09, 2017 08:38AM
On Tue, Nov 07, 2017 at 06:04:26PM +0330, Mohammad Puyandeh via nginx wrote:

Hi there,

> >>If you add "--limit-rate 16000" to that curl command, do you see output
> >>from your back-end server immediately, or only after enough time has
> >>passed that your client has sent all of the content to nginx?
>
> It's after, so Nginx buffers correctly here and I was mistaken
>
> but now the question is, this behavior is not much different than
> when proxy_request_buffering is set to off

If you repeat the test with "proxy_request_buffering off" in nginx.conf,
you should see that the back-end server starts receiving content sooner.

That is pretty much the only thing that proxy_request_buffering is for.

> the whole point of using  nginx is to buffer request and pass
> request body to back-end server at once in a single chunk, but nginx
> pass it in small chunks, there is some other configuration for that
> ? how can we achieve this goal then ?

What do you mean by "single chunk" and "small chunks"?

Do you mean "nginx uses Transfer-Encoding: chunked in its request to
upstream", or do you mean something else?

Because if you mean "Transfer-Encoding: chunked", you can disable
that by using HTTP/1.0 in the connection from nginx to upstream
(http://nginx.org/r/proxy_http_version); but that is the default and
you did not show it having been changed.

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Proxy Request buffering not working as expected

Mohammad Puyandeh via nginx November 06, 2017 07:54AM

Re: Proxy Request buffering not working as expected

Francis Daly November 06, 2017 09:30AM

Re: Proxy Request buffering not working as expected

Mohammad Puyandeh via nginx November 06, 2017 10:46AM

Re: Proxy Request buffering not working as expected

Francis Daly November 06, 2017 01:58PM

Re: Proxy Request buffering not working as expected

Mohammad Puyandeh via nginx November 07, 2017 09:36AM

Re: Proxy Request buffering not working as expected

Francis Daly November 09, 2017 08:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 255
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