summaryrefslogtreecommitdiffhomepage
path: root/src/os
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/os/unix/ngx_send.c2
-rw-r--r--src/os/win32/ngx_win32_config.h1
2 files changed, 3 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) {
diff --git a/src/os/win32/ngx_win32_config.h b/src/os/win32/ngx_win32_config.h
index 5b126fb24..6bbe66bcf 100644
--- a/src/os/win32/ngx_win32_config.h
+++ b/src/os/win32/ngx_win32_config.h
@@ -97,6 +97,7 @@ typedef int ssize_t;
typedef long time_t;
typedef __int64 off_t;
typedef uint32_t in_addr_t;
+typedef u_short in_port_t;
typedef int sig_atomic_t;
typedef uint32_t ngx_atomic_t;