comparison src/os/unix/ngx_recv.c @ 537:c9ad0d9c7d59 release-0.1.43

nginx-0.1.43-RELEASE import *) 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 the bug had appeared in 0.1.29.
author Igor Sysoev <igor@sysoev.ru>
date Tue, 30 Aug 2005 10:55:07 +0000
parents 2ff194b74f1e
children 326634fb9d47
comparison
equal deleted inserted replaced
536:2ae4b98c5bcb 537:c9ad0d9c7d59
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 {