The official NGINX Open Source repository.
Go to file
Maxim Dounin 5274f023a2 Upstream: no last buffer on errors.
Previously, after sending a header we always sent a last buffer and
finalized a request with code 0, even in case of errors.  In some cases
this resulted in a loss of ability to detect the response wasn't complete
(e.g. if Content-Length was removed from a response by gzip filter).

This change tries to propogate to a client information that a response
isn't complete in such cases.  In particular, with this change we no longer
pretend a returned response is complete if we wasn't able to create
a temporary file.

If an error code suggests the error wasn't fatal, we flush buffered data
and disable keepalive, then finalize request normally.  This allows to to
propogate information about a problem to a client, while still sending all
the data we've got from an upstream.
2013-07-25 15:00:41 +04:00
auto Configure: perl Makefile rebuild after configure. 2013-07-11 20:34:02 +04:00
conf Added the HTTPS fastcgi_param to fastcgi.conf. 2011-12-25 19:15:56 +00:00
contrib nginx-0.3.55-RELEASE import 2006-07-28 15:16:17 +00:00
docs nginx-1.5.2-RELEASE 2013-07-02 16:28:50 +04:00
misc Updated zlib used for win32 builds. 2013-06-04 16:16:51 +04:00
src Upstream: no last buffer on errors. 2013-07-25 15:00:41 +04:00
.hgtags release-1.5.2 tag 2013-07-02 16:28:51 +04:00