nginx-0.0.2-2004-03-14-23:46:25 import
diff --git a/src/core/ngx_connection.c b/src/core/ngx_connection.c
index 54fd0f9..49eade1 100644
--- a/src/core/ngx_connection.c
+++ b/src/core/ngx_connection.c
@@ -252,7 +252,9 @@
 #if !(WIN32)
         || err == NGX_EPIPE
 #endif
-        || err == NGX_ENOTCONN)
+        || err == NGX_ENOTCONN
+        || err == NGX_ECONNREFUSED
+        || err == NGX_EHOSTUNREACH)
     {
 
         switch (c->log_error) {