diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-09-09 15:40:48 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-09-09 15:40:48 +0000 |
commit | 2e6ba93fa79cadf9ed2256992d7c8c4d512f2b1f (patch) | |
tree | 50dd328ad6dbd0d9a22a561f2f335ebfe098f1d0 /src/os | |
parent | 0d9da9b6c3c4842eade3034e6e1f3ea140d08d6d (diff) | |
download | nginx-2e6ba93fa79cadf9ed2256992d7c8c4d512f2b1f.tar.gz nginx-2e6ba93fa79cadf9ed2256992d7c8c4d512f2b1f.zip |
nginx-0.0.10-2004-09-09-19:40:48 import
Diffstat (limited to 'src/os')
-rw-r--r-- | src/os/unix/ngx_send.c | 2 | ||||
-rw-r--r-- | src/os/win32/ngx_win32_config.h | 1 |
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; |