diff options
author | Igor Sysoev <igor@sysoev.ru> | 2018-09-28 15:12:47 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2018-09-28 15:12:47 +0300 |
commit | 92da8dae1e4194698ace12e6a51df5d9431e00c4 (patch) | |
tree | b5933590982e5650795ee6ffc8dacdc67d14bc9e /src/nxt_conn_write.c | |
parent | 425d56037247480eb9c3f839fb79a88f2aa2f36b (diff) | |
download | unit-92da8dae1e4194698ace12e6a51df5d9431e00c4.tar.gz unit-92da8dae1e4194698ace12e6a51df5d9431e00c4.tar.bz2 |
Fixed bug in socket write error handling.
The bug has been introduced in e3972a4a9c73.
Diffstat (limited to 'src/nxt_conn_write.c')
-rw-r--r-- | src/nxt_conn_write.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nxt_conn_write.c b/src/nxt_conn_write.c index 73c3fa02..80d6f5cf 100644 --- a/src/nxt_conn_write.c +++ b/src/nxt_conn_write.c @@ -127,7 +127,9 @@ nxt_conn_io_write(nxt_task_t *task, void *obj, void *data) return; } - /* ret == NXT_ERROR */ + if (ret != NXT_ERROR) { + return; + } nxt_fd_event_block_write(engine, &c->socket); |