]> git.kaiwu.me - nginx.git/commit
Upstream: NGX_HTTP_GATEWAY_TIME_OUT after upstream timeouts.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 25 Jul 2013 10:56:20 +0000 (14:56 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 25 Jul 2013 10:56:20 +0000 (14:56 +0400)
commit8536fb79ca9801aed16c9d5fd6ddf7d25bfa1603
treeea0d24ec77f65bd06850dadb4e5b4173f519e76a
parentd23dc7d4279ce0e6530886a0cd15b4ca60f62421
Upstream: NGX_HTTP_GATEWAY_TIME_OUT after upstream timeouts.

There is no real difference from previously used 0 as NGX_HTTP_* will
become 0 in ngx_http_upstream_finalize_request(), but the change
preserves information about a timeout a bit longer.  Previous use of
ETIMEDOUT in one place was just wrong.

Note well that with cacheable responses there will be a difference
(code in ngx_http_upstream_finalize_request() will store the error
in cache), though this change doesn't touch cacheable case.
src/http/ngx_http_upstream.c