From 6da1207d952ec903d09bc793cb18f1f3834e6d1b Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Thu, 15 Mar 2018 17:08:39 +0300 Subject: Skipping idle state when port already closed. --- src/nxt_router.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nxt_router.c b/src/nxt_router.c index 39cfd3bc..dbc8b283 100644 --- a/src/nxt_router.c +++ b/src/nxt_router.c @@ -3204,7 +3204,7 @@ re_ra_cancelled: adjust_idle_timer = 0; - if (!send_quit && port->app_pending_responses == 0) { + if (port->pair[1] != -1 && !send_quit && port->app_pending_responses == 0) { nxt_assert(port->idle_link.next == NULL); if (app->idle_processes == app->spare_processes -- cgit