comparison src/core/ngx_connection.c @ 2775:01c691e31032

fix the previous commit
author Igor Sysoev <igor@sysoev.ru>
date Wed, 29 Apr 2009 13:07:16 +0000
parents baad3036086e
children d478379e51ac
comparison
equal deleted inserted replaced
2774:baad3036086e 2775:01c691e31032
799 ngx_int_t 799 ngx_int_t
800 ngx_connection_error(ngx_connection_t *c, ngx_err_t err, char *text) 800 ngx_connection_error(ngx_connection_t *c, ngx_err_t err, char *text)
801 { 801 {
802 ngx_uint_t level; 802 ngx_uint_t level;
803 803
804 /* Winsock may return NGX_ECONNABORTED instead of NGX_ECONNRESET */
805
806 if ((err == NGX_ECONNRESET
804 #if (NGX_WIN32) 807 #if (NGX_WIN32)
805 808 || err == NGX_ECONNABORTED
806 /* Winsock returns NGX_ECONNABORTED instead of NGX_ECONNRESET */ 809 #endif
807 810 ) && c->log_error == NGX_ERROR_IGNORE_ECONNRESET)
808 if (err == NGX_ECONNABORTED
809 #else
810 if (err == NGX_ECONNRESET
811 #endif
812 && c->log_error == NGX_ERROR_IGNORE_ECONNRESET)
813 { 811 {
814 return 0; 812 return 0;
815 } 813 }
816 814
817 #if (NGX_SOLARIS) 815 #if (NGX_SOLARIS)