From f97c3458f02e4c2e927addf02d5eb45f997ac720 Mon Sep 17 00:00:00 2001 From: detailyang Date: Thu, 12 Jan 2017 23:25:40 +0800 Subject: [PATCH] bugfix: no need check for pc->connection != NULL --- ngx_http_upstream_check_module.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ngx_http_upstream_check_module.c b/ngx_http_upstream_check_module.c index 6a7d771..777b28e 100644 --- a/ngx_http_upstream_check_module.c +++ b/ngx_http_upstream_check_module.c @@ -1066,9 +1066,8 @@ ngx_http_upstream_check_begin_handler(ngx_event_t *event) ngx_add_timer(event, ucscf->check_interval / 2); /* This process is processing this peer now. */ - if ((peer->shm->owner == ngx_pid || - (peer->pc.connection != NULL) || - peer->check_timeout_ev.timer_set)) { + if (peer->shm->owner == ngx_pid || + peer->check_timeout_ev.timer_set) { return; }