From e5035397b01ec12f351a6a984f83091b821978cc Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 30 Aug 2005 10:55:07 +0000 Subject: 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. --- src/os/unix/ngx_recv.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/os/unix/ngx_recv.c') diff --git a/src/os/unix/ngx_recv.c b/src/os/unix/ngx_recv.c index 369be661a..e96ca7898 100644 --- a/src/os/unix/ngx_recv.c +++ b/src/os/unix/ngx_recv.c @@ -29,20 +29,12 @@ ssize_t ngx_unix_recv(ngx_connection_t *c, u_char *buf, size_t size) rev->ready = 0; rev->eof = 1; - ngx_log_error(NGX_LOG_INFO, c->log, rev->kq_errno, - "kevent() reported about an closed connection"); - if (rev->kq_errno) { rev->error = 1; ngx_set_socket_errno(rev->kq_errno); - if (rev->kq_errno == NGX_ECONNRESET - && c->log_error == NGX_ERROR_IGNORE_ECONNRESET) - { - return 0; - } - - return NGX_ERROR; + return ngx_connection_error(c, rev->kq_errno, + "kevent() reported about an closed connection"); } return 0; -- cgit v1.2.3