diff src/http/ngx_http_upstream.c @ 5261:af60a210cb78

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.
author Ruslan Ermilov <ru@nginx.com>
date Wed, 03 Jul 2013 12:04:13 +0400
parents 05c53652e7b4
children 8f9da50cf912
line wrap: on
line diff
--- 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;