Welcome! Log In Create A New Profile

Advanced

Re: How nignx handled the header to the client in this situation

Francis Daly
May 16, 2020 08:12AM
On Fri, May 15, 2020 at 11:09:53PM -0400, allenhe wrote:

Hi there,

> w.r.t. the "http://nginx.org/r/proxy_buffering", the doc does not mention if
> the buffering works for header, body or both,

It's "the response".

It sounds like it should be fairly straightforward to test on your setup,
if you want to convince yourself what it does -- make an upstream that
receives a request, waits 5 second, sends the response header, waits 10
seconds, sends some of the response body, waits 10 seconds, and sends
the rest of the response body.

Then make a request directly to that upstream, and see that you see
something after 5, 15, and 25 seconds.

Then make a request through nginx, and see if you see anything before
25 seconds (all buffered); or see something after 5 seconds (header sent
early) or after 15 (header and start of body sent early).

> I'm wondering if nginx can
> postpone the sending of upstream header in any ways?

Can you show the request that you make and the response that you get
that is not the response that you want?

Good luck with it,

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

How nignx handled the header to the client in this situation

allenhe May 11, 2020 07:55AM

Re: How nignx handled the header to the client in this situation

allenhe May 15, 2020 01:51AM

Re: How nignx handled the header to the client in this situation

Francis Daly May 15, 2020 02:34PM

Re: How nignx handled the header to the client in this situation

allenhe May 15, 2020 11:09PM

Re: How nignx handled the header to the client in this situation

Francis Daly May 16, 2020 08:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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