Fixed segfault on listening socket close.

Now keep-alive connection sends 408 response if listening
socket was closed while reconfiguration.
This commit is contained in:
Igor Sysoev
2018-07-30 17:05:49 +03:00
parent 69a1169cae
commit 8654372842
2 changed files with 58 additions and 15 deletions

View File

@@ -60,6 +60,8 @@ nxt_conn_io_read(nxt_task_t *task, void *obj, void *data)
} else {
n = state->io_read_handler(c);
/* The state can be changed by io_read_handler. */
state = c->read_state;
}
if (n > 0) {