summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conn_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_conn_read.c')
-rw-r--r--src/nxt_conn_read.c2
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) {