aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_send.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/unix/ngx_send.c')
-rw-r--r--src/os/unix/ngx_send.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os/unix/ngx_send.c b/src/os/unix/ngx_send.c
index 5a1a0ff29..2bcbdf9d7 100644
--- a/src/os/unix/ngx_send.c
+++ b/src/os/unix/ngx_send.c
@@ -42,6 +42,8 @@ ssize_t ngx_unix_send(ngx_connection_t *c, u_char *buf, size_t size)
if (n == 0) {
ngx_log_error(NGX_LOG_ALERT, c->log, err, "send() returned zero");
+ wev->ready = 0;
+ return n;
}
if (err == NGX_EAGAIN || err == NGX_EINTR) {