# HG changeset patch # User Ruslan Ermilov # Date 1372838653 -14400 # Node ID af60a210cb781aa472f75926cb0e1f25daa155f5 # Parent e088695737c3446bfe45a2c8d4e1a6a0e3138441 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. diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -1181,7 +1181,7 @@ ngx_http_upstream_connect(ngx_http_reque return; } - /* rc == NGX_OK || rc == NGX_AGAIN */ + /* rc == NGX_OK || rc == NGX_AGAIN || rc == NGX_DONE */ c = u->peer.connection;