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:
parent
f5c8a31e98
commit
a96d698a88
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue