comparison src/core/ngx_connection.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 b31656313b59
children 71c46860eb55
comparison
equal deleted inserted replaced
85:ed21d13ec23c 86:962c43960644
121 121
122 ls[i].addr_text.len = ngx_sprintf(ls[i].addr_text.data + len, ":%d", 122 ls[i].addr_text.len = ngx_sprintf(ls[i].addr_text.data + len, ":%d",
123 ntohs(sin->sin_port)) 123 ntohs(sin->sin_port))
124 - ls[i].addr_text.data; 124 - ls[i].addr_text.data;
125 125
126 ls[i].backlog = -1;
127
126 #if (NGX_HAVE_DEFERRED_ACCEPT && defined SO_ACCEPTFILTER) 128 #if (NGX_HAVE_DEFERRED_ACCEPT && defined SO_ACCEPTFILTER)
127 129
128 ngx_memzero(&af, sizeof(struct accept_filter_arg)); 130 ngx_memzero(&af, sizeof(struct accept_filter_arg));
129 aflen = sizeof(struct accept_filter_arg); 131 aflen = sizeof(struct accept_filter_arg);
130 132
465 && c->log_error == NGX_ERROR_IGNORE_ECONNRESET) 467 && c->log_error == NGX_ERROR_IGNORE_ECONNRESET)
466 { 468 {
467 return 0; 469 return 0;
468 } 470 }
469 471
470 if (err == NGX_ECONNRESET 472 if (err == 0
473 || err == NGX_ECONNRESET
471 #if !(NGX_WIN32) 474 #if !(NGX_WIN32)
472 || err == NGX_EPIPE 475 || err == NGX_EPIPE
473 #endif 476 #endif
474 || err == NGX_ENOTCONN 477 || err == NGX_ENOTCONN
475 || err == NGX_ECONNREFUSED 478 || err == NGX_ECONNREFUSED