diff options
Diffstat (limited to 'src/nxt_kqueue_engine.c')
-rw-r--r-- | src/nxt_kqueue_engine.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nxt_kqueue_engine.c b/src/nxt_kqueue_engine.c index 559f0c9e..a216e066 100644 --- a/src/nxt_kqueue_engine.c +++ b/src/nxt_kqueue_engine.c @@ -522,6 +522,8 @@ nxt_kqueue_fd_error_handler(nxt_task_t *task, void *obj, void *data) ev = obj; + nxt_debug(task, "kqueue fd error handler fd:%d", ev->fd); + if (ev->kq_eof && ev->kq_errno != 0) { ev->error = ev->kq_errno; nxt_log(task, nxt_socket_error_level(ev->kq_errno), @@ -544,6 +546,8 @@ nxt_kqueue_file_error_handler(nxt_task_t *task, void *obj, void *data) ev = obj; + nxt_debug(task, "kqueue file error handler fd:%d", ev->file->fd); + ev->handler(task, ev, data); } @@ -924,7 +928,7 @@ nxt_kqueue_event_conn_io_accept(nxt_task_t *task, void *obj, void *data) nxt_event_conn_listen_t *cls; cls = obj; - c = data; + c = cls->next; cls->ready--; cls->socket.read_ready = (cls->ready != 0); |