comparison src/os/unix/ngx_recv.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 6f8b0dc0f8dd
children 82d695e3d662
comparison
equal deleted inserted replaced
85:ed21d13ec23c 86:962c43960644
27 if (rev->available == 0) { 27 if (rev->available == 0) {
28 if (rev->pending_eof) { 28 if (rev->pending_eof) {
29 rev->ready = 0; 29 rev->ready = 0;
30 rev->eof = 1; 30 rev->eof = 1;
31 31
32 ngx_log_error(NGX_LOG_INFO, c->log, rev->kq_errno,
33 "kevent() reported about an closed connection");
34
35 if (rev->kq_errno) { 32 if (rev->kq_errno) {
36 rev->error = 1; 33 rev->error = 1;
37 ngx_set_socket_errno(rev->kq_errno); 34 ngx_set_socket_errno(rev->kq_errno);
38 35
39 if (rev->kq_errno == NGX_ECONNRESET 36 return ngx_connection_error(c, rev->kq_errno,
40 && c->log_error == NGX_ERROR_IGNORE_ECONNRESET) 37 "kevent() reported about an closed connection");
41 {
42 return 0;
43 }
44
45 return NGX_ERROR;
46 } 38 }
47 39
48 return 0; 40 return 0;
49 41
50 } else { 42 } else {