Klaus Demo nginx / 02d8e8e
add NGX_ENETDOWN, NGX_ENETUNREACH, and NGX_EHOSTDOWN Igor Sysoev 14 years ago
5 changed file(s) with 19 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
766766 || err == NGX_ENOTCONN
767767 || err == NGX_ETIMEDOUT
768768 || err == NGX_ECONNREFUSED
769 || err == NGX_ENETDOWN
770 || err == NGX_ENETUNREACH
771 || err == NGX_EHOSTDOWN
769772 || err == NGX_EHOSTUNREACH)
770773 {
771774 switch (c->log_error) {
142142
143143 if (err != NGX_EINPROGRESS && err != NGX_EAGAIN) {
144144
145 if (err == NGX_ECONNREFUSED || err == NGX_EHOSTUNREACH) {
145 if (err == NGX_ECONNREFUSED
146 || err == NGX_ENETDOWN
147 || err == NGX_ENETUNREACH
148 || err == NGX_EHOSTDOWN
149 || err == NGX_EHOSTUNREACH)
150 {
146151 level = NGX_LOG_ERR;
152
147153 } else {
148154 level = NGX_LOG_CRIT;
149155 }
11201120 || err == NGX_ETIMEDOUT
11211121 #endif
11221122 || err == NGX_ECONNREFUSED
1123 || err == NGX_ENETDOWN
1124 || err == NGX_ENETUNREACH
1125 || err == NGX_EHOSTDOWN
11231126 || err == NGX_EHOSTUNREACH)
11241127 {
11251128 switch (c->log_error) {
3636 #define NGX_ETIMEDOUT ETIMEDOUT
3737 #define NGX_ECONNREFUSED ECONNREFUSED
3838 #define NGX_ENAMETOOLONG ENAMETOOLONG
39 #define NGX_ENETDOWN ENETDOWN
40 #define NGX_ENETUNREACH ENETUNREACH
41 #define NGX_EHOSTDOWN EHOSTDOWN
3942 #define NGX_EHOSTUNREACH EHOSTUNREACH
4043 #define NGX_ENOSYS ENOSYS
4144 #define NGX_ECANCELED ECANCELED
3939 #define NGX_ETIMEDOUT WSAETIMEDOUT
4040 #define NGX_ECONNREFUSED WSAECONNREFUSED
4141 #define NGX_ENAMETOOLONG ERROR_BAD_PATHNAME
42 #define NGX_ENETDOWN WSAENETDOWN
43 #define NGX_ENETUNREACH WSAENETUNREACH
44 #define NGX_EHOSTDOWN WSAEHOSTDOWN
4245 #define NGX_EHOSTUNREACH WSAEHOSTUNREACH
4346 #define NGX_ENOMOREFILES ERROR_NO_MORE_FILES
4447