From 92ddc15a84d50306b3d1e22387dd0373994968af Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 13 Nov 2018 19:04:48 +0300 Subject: Checking error states in I/O handlers. --- src/nxt_conn_read.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/nxt_conn_read.c') diff --git a/src/nxt_conn_read.c b/src/nxt_conn_read.c index e458bf81..8228326b 100644 --- a/src/nxt_conn_read.c +++ b/src/nxt_conn_read.c @@ -48,6 +48,10 @@ nxt_conn_io_read(nxt_task_t *task, void *obj, void *data) nxt_debug(task, "conn read fd:%d rdy:%d cl:%d", c->socket.fd, c->socket.read_ready, c->socket.closed); + if (c->socket.error != 0) { + return; + } + engine = task->thread->engine; /* -- cgit