Welcome! Log In Create A New Profile

Advanced

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

Francis Daly
May 15, 2020 02:34PM
On Fri, May 15, 2020 at 01:51:13AM -0400, allenhe wrote:

Hi there,

> Will nginx buffer the header before receiving of the whole body?
> If not, what if error happens in the middle of body receiving? nginx has no
> chance to resend the error status then.

What do you want your nginx to do, in that case?

I suspect that what nginx does do, depends on things like
http://nginx.org/r/proxy_buffering

As you suggest: if nginx gets the entire response before sending anything
to the client, it can send a suitable response code.

If nginx is told to stream the response "live", then if the response is
http 200 plus half the intended body, that is what the client will get.

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