diff options
author | Igor Sysoev <igor@sysoev.ru> | 2018-11-13 19:04:48 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2018-11-13 19:04:48 +0300 |
commit | 92ddc15a84d50306b3d1e22387dd0373994968af (patch) | |
tree | 020433b939b7d451d6338cb7d11799295df5e5fc /src/nxt_conn_read.c | |
parent | cf1f84b67c50156dc371e834bbdfd49c105abb25 (diff) | |
download | unit-92ddc15a84d50306b3d1e22387dd0373994968af.tar.gz unit-92ddc15a84d50306b3d1e22387dd0373994968af.tar.bz2 |
Checking error states in I/O handlers.
Diffstat (limited to 'src/nxt_conn_read.c')
-rw-r--r-- | src/nxt_conn_read.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; /* |