From deb4778c3bbbbcb1c5c677c26fa8b2f8aef2c627 Mon Sep 17 00:00:00 2001 From: favortel Date: Sun, 24 Apr 2022 16:53:01 +0800 Subject: [PATCH] Update ngx_http_upstream_check_module.c Fix TCP check bugs, change to no-keepalive mode --- ngx_http_upstream_check_module.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ngx_http_upstream_check_module.c b/ngx_http_upstream_check_module.c index f99982f..4f3196d 100644 --- a/ngx_http_upstream_check_module.c +++ b/ngx_http_upstream_check_module.c @@ -653,7 +653,7 @@ static ngx_check_conf_t ngx_check_types[] = { NULL, NULL, 0, - 1 }, + 0 }, { NGX_HTTP_CHECK_HTTP, ngx_string("http"), @@ -1048,7 +1048,6 @@ ngx_http_upstream_check_begin_handler(ngx_event_t *event) /* This process is processing this peer now. */ if ((peer->shm->owner == ngx_pid || - (peer->pc.connection != NULL) || peer->check_timeout_ev.timer_set)) { return; }