From 30c73ec4abc41cbbb015677a4cb97c09164b8475 Mon Sep 17 00:00:00 2001 From: lvguanglin 00177705 Date: Tue, 1 Aug 2017 10:55:29 +0800 Subject: [PATCH] check never again when connect failure occurs --- ngx_http_upstream_check_module.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ngx_http_upstream_check_module.c b/ngx_http_upstream_check_module.c index b7f6d1f..e3cd12f 100644 --- a/ngx_http_upstream_check_module.c +++ b/ngx_http_upstream_check_module.c @@ -1135,6 +1135,7 @@ ngx_http_upstream_check_connect_handler(ngx_event_t *event) if (rc == NGX_ERROR || rc == NGX_DECLINED) { ngx_http_upstream_check_status_update(peer, 0); + ngx_http_upstream_check_clean_event(peer); return; }