Mercurial > hg > nginx-vendor-1-0
comparison src/os/unix/ngx_freebsd_sendfile_chain.c @ 86:962c43960644 NGINX_0_1_43
nginx 0.1.43
*) Feature: the listen(2) backlog in the "listen" directive can be
changed using the -HUP signal.
*) Feature: the geo2nginx.pl script was added to contrib.
*) Change: the FastCGI parameters with the empty values now are passed
to a server.
*) Bugfix: the segmentation fault occurred or the worker process may
got caught in an endless loop if the proxied or FastCGI server sent
the "Cache-Control" header line and the "expires" directive was
used; in the proxied mode the bug appeared in 0.1.29.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 30 Aug 2005 00:00:00 +0400 |
parents | 72eb30262aac |
children | e916a291e9aa |
comparison
equal
deleted
inserted
replaced
85:ed21d13ec23c | 86:962c43960644 |
---|---|
55 } | 55 } |
56 | 56 |
57 #if (NGX_HAVE_KQUEUE) | 57 #if (NGX_HAVE_KQUEUE) |
58 | 58 |
59 if ((ngx_event_flags & NGX_USE_KQUEUE_EVENT) && wev->pending_eof) { | 59 if ((ngx_event_flags & NGX_USE_KQUEUE_EVENT) && wev->pending_eof) { |
60 ngx_log_error(NGX_LOG_INFO, c->log, wev->kq_errno, | 60 (void) ngx_connection_error(c, wev->kq_errno, |
61 "kevent() reported about an closed connection"); | 61 "kevent() reported about an closed connection"); |
62 | |
63 wev->error = 1; | 62 wev->error = 1; |
64 return NGX_CHAIN_ERROR; | 63 return NGX_CHAIN_ERROR; |
65 } | 64 } |
66 | 65 |
67 #endif | 66 #endif |
226 * we continue a processing without the TCP_NOPUSH | 225 * we continue a processing without the TCP_NOPUSH |
227 */ | 226 */ |
228 | 227 |
229 if (err != NGX_EINTR) { | 228 if (err != NGX_EINTR) { |
230 wev->error = 1; | 229 wev->error = 1; |
231 ngx_connection_error(c, err, | 230 (void) ngx_connection_error(c, err, |
232 ngx_tcp_nopush_n " failed"); | 231 ngx_tcp_nopush_n " failed"); |
233 return NGX_CHAIN_ERROR; | 232 return NGX_CHAIN_ERROR; |
234 } | 233 } |
235 | 234 |
236 } else { | 235 } else { |
237 c->tcp_nopush = NGX_TCP_NOPUSH_SET; | 236 c->tcp_nopush = NGX_TCP_NOPUSH_SET; |
274 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, err, | 273 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, err, |
275 "sendfile() sent only %O bytes", sent); | 274 "sendfile() sent only %O bytes", sent); |
276 | 275 |
277 } else { | 276 } else { |
278 wev->error = 1; | 277 wev->error = 1; |
279 ngx_connection_error(c, err, "sendfile() failed"); | 278 (void) ngx_connection_error(c, err, "sendfile() failed"); |
280 return NGX_CHAIN_ERROR; | 279 return NGX_CHAIN_ERROR; |
281 } | 280 } |
282 } | 281 } |
283 | 282 |
284 /* | 283 /* |