summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2018-03-15 17:08:39 +0300
committerMax Romanov <max.romanov@nginx.com>2018-03-15 17:08:39 +0300
commit6da1207d952ec903d09bc793cb18f1f3834e6d1b (patch)
tree552891906e158ee297d29f8cf455a2bb1a6c3dd7
parent7958a22de04a886850594674d487a091503b2df4 (diff)
downloadunit-6da1207d952ec903d09bc793cb18f1f3834e6d1b.tar.gz
unit-6da1207d952ec903d09bc793cb18f1f3834e6d1b.tar.bz2
Skipping idle state when port already closed.
Diffstat (limited to '')
-rw-r--r--src/nxt_router.c2
1 files changed, 1 insertions, 1 deletions
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