about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-02-09 03:39:31 +0000
committerEric Wong <normalperson@yhbt.net>2012-02-09 03:39:31 +0000
commitd8c206be3f375e31863999c917bd56746a46264f (patch)
tree851bb893d050b5500c3a163b1f01f570d14f0917
parent19f485ed71d41188d4524403b19d4d35d8835c27 (diff)
downloadcmogstored-d8c206be3f375e31863999c917bd56746a46264f.tar.gz
They're far too common and will just flood syslog
-rw-r--r--http.c3
-rw-r--r--mgmt.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/http.c b/http.c
index 5f9b9a0..57c3ee5 100644
--- a/http.c
+++ b/http.c
@@ -173,6 +173,9 @@ parse:
                         }
                         return MOG_NEXT_WAIT_RD;
                 case EINTR: goto reread;
+                case ECONNRESET:
+                case ENOTCONN:
+                        return MOG_NEXT_CLOSE;
                 default:
                         syslog(LOG_NOTICE, "http client died: %m");
                         return MOG_NEXT_CLOSE;
diff --git a/mgmt.c b/mgmt.c
index b75835f..8c3d6e2 100644
--- a/mgmt.c
+++ b/mgmt.c
@@ -182,6 +182,9 @@ parse:
                                 mgmt->rbuf = mog_rbuf_defer(rbuf);
                         return MOG_NEXT_WAIT_RD;
                 case EINTR: goto reread;
+                case ECONNRESET:
+                case ENOTCONN:
+                        return MOG_NEXT_CLOSE;
                 default:
                         syslog(LOG_NOTICE, "mgmt client died: %m");
                         return MOG_NEXT_CLOSE;