Fixed use-after-free error during reconfiguration.

An idle connection was not removed from idle connection list
if the connections detected that listening socket had been closed.
This commit is contained in:
Igor Sysoev
2020-09-18 13:20:02 +03:00
parent 806135f1c9
commit 09f4db1fc0

View File

@@ -1829,6 +1829,8 @@ nxt_h1p_idle_close(nxt_task_t *task, void *obj, void *data)
nxt_debug(task, "h1p idle close"); nxt_debug(task, "h1p idle close");
nxt_queue_remove(&c->link);
nxt_h1p_idle_response(task, c); nxt_h1p_idle_response(task, c);
} }