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 fran...@daoine.org _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx