diff options
author | Max Romanov <max.romanov@nginx.com> | 2019-10-22 16:04:56 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2019-10-22 16:04:56 +0300 |
commit | 8df4468014310c8a880d3edf90ae1edfca5197bd (patch) | |
tree | 059b95e2abf5564b565ab8d7573c183540a507d3 /src/nxt_runtime.c | |
parent | e54f5f3dc8ec281bbc17e4092d168ea32ae099d7 (diff) | |
download | unit-8df4468014310c8a880d3edf90ae1edfca5197bd.tar.gz unit-8df4468014310c8a880d3edf90ae1edfca5197bd.tar.bz2 |
Fixing idle connection close function.
There was a typo: nxt_queue_head() used instead of nxt_queue_first() in
connection iteration loop. This prevents idle connection close on quit.
This closes #334 issue on GitHub.
Thanks to 洪志道 (Hong Zhi Dao).
Diffstat (limited to 'src/nxt_runtime.c')
-rw-r--r-- | src/nxt_runtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_runtime.c b/src/nxt_runtime.c index de41ba4d..9efe7500 100644 --- a/src/nxt_runtime.c +++ b/src/nxt_runtime.c @@ -459,7 +459,7 @@ nxt_runtime_close_idle_connections(nxt_event_engine_t *engine) idle = &engine->idle_connections; - for (link = nxt_queue_head(idle); + for (link = nxt_queue_first(idle); link != nxt_queue_tail(idle); link = next) { |