comparison src/core/ngx_connection.c @ 257:70e1c7d2b83d

nginx-0.0.2-2004-02-11-20:08:49 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 11 Feb 2004 17:08:49 +0000
parents 8e39cab6abd5
children 0ba4821f4460
comparison
equal deleted inserted replaced
256:8e39cab6abd5 257:70e1c7d2b83d
238 } 238 }
239 239
240 240
241 ngx_int_t ngx_connection_error(ngx_connection_t *c, ngx_err_t err, char *text) 241 ngx_int_t ngx_connection_error(ngx_connection_t *c, ngx_err_t err, char *text)
242 { 242 {
243 ngx_int_t level; 243 ngx_uint_t level;
244 244
245 if (err == NGX_ECONNRESET 245 if (err == NGX_ECONNRESET
246 && c->log_error == NGX_ERROR_IGNORE_ECONNRESET) 246 && c->log_error == NGX_ERROR_IGNORE_ECONNRESET)
247 { 247 {
248 return 0; 248 return 0;
250 250
251 if (err == NGX_ECONNRESET || err == NGX_EPIPE || err == NGX_ENOTCONN) { 251 if (err == NGX_ECONNRESET || err == NGX_EPIPE || err == NGX_ENOTCONN) {
252 252
253 switch (c->log_error) { 253 switch (c->log_error) {
254 254
255 case NGX_ERROR_IGNORE_ECONNRESET:
255 case NGX_ERROR_INFO: 256 case NGX_ERROR_INFO:
256 level = NGX_LOG_INFO; 257 level = NGX_LOG_INFO;
257 break; 258 break;
258 259
259 case NGX_ERROR_ERR: 260 case NGX_ERROR_ERR: