Merge of r4144:

Upstream: clearing of u->peer.connection on close.

This fixes crashes observed with some 3rd party balancer modules.  Standard
balancer modules (round-robin and ip hash) explicitly set pc->connection
(aka u->peer.connection) to NULL and aren't affected.
This commit is contained in:
Maxim Dounin 2011-12-13 18:30:15 +00:00
parent f5c8a31e98
commit a96d698a88
1 changed files with 1 additions and 0 deletions

View File

@ -2888,6 +2888,7 @@ ngx_http_upstream_next(ngx_http_request_t *r, ngx_http_upstream_t *u,
#endif
ngx_close_connection(u->peer.connection);
u->peer.connection = NULL;
}
#if 0