aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_upstream.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2013-07-03 12:04:13 +0400
committerRuslan Ermilov <ru@nginx.com>2013-07-03 12:04:13 +0400
commit523191ec89a11f3ffc81f6b6b710f46f86fa33d0 (patch)
tree9cf6c9f5633cb4a37c8cea79978cefdde738e6f1 /src/http/ngx_http_upstream.c
parentdd3e13eef01e9f04ac447eaa3a1a76575944fc28 (diff)
downloadnginx-523191ec89a11f3ffc81f6b6b710f46f86fa33d0.tar.gz
nginx-523191ec89a11f3ffc81f6b6b710f46f86fa33d0.zip
Upstream: updated list of ngx_event_connect_peer() return values.
ngx_http_upstream_get_keepalive_peer() may return NGX_DONE to indicate that the cached keepalive connection is reused.
Diffstat (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r--src/http/ngx_http_upstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 16e660245..5ba794228 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -1181,7 +1181,7 @@ ngx_http_upstream_connect(ngx_http_request_t *r, ngx_http_upstream_t *u)
return;
}
- /* rc == NGX_OK || rc == NGX_AGAIN */
+ /* rc == NGX_OK || rc == NGX_AGAIN || rc == NGX_DONE */
c = u->peer.connection;