From 2e6ba93fa79cadf9ed2256992d7c8c4d512f2b1f Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 9 Sep 2004 15:40:48 +0000 Subject: nginx-0.0.10-2004-09-09-19:40:48 import --- src/os/unix/ngx_send.c | 2 ++ src/os/win32/ngx_win32_config.h | 1 + 2 files changed, 3 insertions(+) (limited to 'src/os') 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; -- cgit