summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-07-13 22:44:46 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-07-13 22:44:46 +0300
commitdaaa216e2fe8999b62b057802b35e2ac92ed8cc2 (patch)
tree92c7ec171e27aa082fe1c2bd234cd65c61832c2a
parentc5d791d0c4e4949ade77b6b5cafb7199a322ff79 (diff)
downloadunit-daaa216e2fe8999b62b057802b35e2ac92ed8cc2.tar.gz
unit-daaa216e2fe8999b62b057802b35e2ac92ed8cc2.tar.bz2
Using correct task for connection initialization.
-rw-r--r--src/nxt_conn_accept.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_conn_accept.c b/src/nxt_conn_accept.c
index 6f42cf3d..1f620d76 100644
--- a/src/nxt_conn_accept.c
+++ b/src/nxt_conn_accept.c
@@ -217,11 +217,11 @@ nxt_conn_accept(nxt_task_t *task, nxt_listen_event_t *lev, nxt_conn_t *c)
//c->socket.read_ready = 1;
// lev->listen->handler(task, c, lev->socket.data);
nxt_work_queue_add(c->read_work_queue, lev->listen->handler,
- task, c, lev->socket.data);
+ &c->task, c, lev->socket.data);
} else {
nxt_work_queue_add(c->write_work_queue, lev->listen->handler,
- task, c, lev->socket.data);
+ &c->task, c, lev->socket.data);
}
next = nxt_conn_accept_next(task, lev);