summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conn_write.c
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2018-10-25 19:00:07 +0300
committerAndrei Belov <defan@nginx.com>2018-10-25 19:00:07 +0300
commitdc3e83f26ce9f92a157d4332c723d531ca411b80 (patch)
treea723f2ce7d8c91527fdfb94eeae708292a705417 /src/nxt_conn_write.c
parent8b37c0c70a183f19f7f4245ce0825954d8dbcaf7 (diff)
parentfd99a738e586326ee5b40a6bc3d09c64b18f394a (diff)
downloadunit-1.5-1.tar.gz
unit-1.5-1.tar.bz2
Merged with the default branch.1.5-1
Diffstat (limited to 'src/nxt_conn_write.c')
-rw-r--r--src/nxt_conn_write.c4
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);