diff options
author | Igor Sysoev <igor@sysoev.ru> | 2018-07-30 17:05:49 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2018-07-30 17:05:49 +0300 |
commit | 865437284291754bf64e589ab86a0686280f78e8 (patch) | |
tree | 92cc89fb532f223c8d559fe6d3d73727f2af2f05 /src/nxt_conn_read.c | |
parent | 69a1169cae8c3f47135bdb205b9284bf6faceffc (diff) | |
download | unit-865437284291754bf64e589ab86a0686280f78e8.tar.gz unit-865437284291754bf64e589ab86a0686280f78e8.tar.bz2 |
Fixed segfault on listening socket close.
Now keep-alive connection sends 408 response if listening
socket was closed while reconfiguration.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_conn_read.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_conn_read.c b/src/nxt_conn_read.c index dce4268e..98c5e425 100644 --- a/src/nxt_conn_read.c +++ b/src/nxt_conn_read.c @@ -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) { |