comparison 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
comparison
equal deleted inserted replaced
5260:e088695737c3 5261:af60a210cb78
1179 if (rc == NGX_DECLINED) { 1179 if (rc == NGX_DECLINED) {
1180 ngx_http_upstream_next(r, u, NGX_HTTP_UPSTREAM_FT_ERROR); 1180 ngx_http_upstream_next(r, u, NGX_HTTP_UPSTREAM_FT_ERROR);
1181 return; 1181 return;
1182 } 1182 }
1183 1183
1184 /* rc == NGX_OK || rc == NGX_AGAIN */ 1184 /* rc == NGX_OK || rc == NGX_AGAIN || rc == NGX_DONE */
1185 1185
1186 c = u->peer.connection; 1186 c = u->peer.connection;
1187 1187
1188 c->data = r; 1188 c->data = r;
1189 1189