Mercurial > hg > nginx-vendor-current
comparison src/os/unix/ngx_send.c @ 136:3656228c0b56 NGINX_0_3_15
nginx 0.3.15
*) Feature: the new 444 code of the "return" directive to close
connection.
*) Feature: the "so_keepalive" directive in IMAP/POP3 proxy.
*) Bugfix: if there are unclosed connection nginx now calls abort()
only on gracefull quit and active "debug_points" directive.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 07 Dec 2005 00:00:00 +0300 |
parents | 82d695e3d662 |
children | 583decdb82a4 |
comparison
equal
deleted
inserted
replaced
135:c1ac76c0e9df | 136:3656228c0b56 |
---|---|
17 | 17 |
18 wev = c->write; | 18 wev = c->write; |
19 | 19 |
20 #if (NGX_HAVE_KQUEUE) | 20 #if (NGX_HAVE_KQUEUE) |
21 | 21 |
22 if ((ngx_event_flags & NGX_USE_KQUEUE_EVENT) | 22 if ((ngx_event_flags & NGX_USE_KQUEUE_EVENT) && wev->pending_eof) { |
23 && wev->pending_eof | |
24 /* FreeBSD 5.x-6.x may erroneously report ETIMEDOUT */ | |
25 && wev->kq_errno != NGX_ETIMEDOUT) | |
26 { | |
27 (void) ngx_connection_error(c, wev->kq_errno, | 23 (void) ngx_connection_error(c, wev->kq_errno, |
28 "kevent() reported about an closed connection"); | 24 "kevent() reported about an closed connection"); |
29 wev->error = 1; | 25 wev->error = 1; |
30 return NGX_ERROR; | 26 return NGX_ERROR; |
31 } | 27 } |