chiark / gitweb /
503 is not timeout
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Mon, 3 May 2010 01:39:11 +0000 (02:39 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Mon, 3 May 2010 01:39:11 +0000 (02:39 +0100)
backends/innduct.c

index df2cdb9..54580af 100644 (file)
@@ -1941,11 +1941,12 @@ static void *peer_rd_ok(oop_source *lp, oop_read *oread, oop_rd_event ev,
 
   switch (code) {
 
-  case 400: PEERBADMSG("peer stopped accepting articles");
   default:  PEERBADMSG("peer sent unexpected message");
 
-  case 503:
-    if (conn_busy) PEERBADMSG("peer timed us out");
+  case 400:
+    if (conn_busy)
+      PEERBADMSG("peer timed us out or stopped accepting articles");
+
     notice("C%d idle connection closed by peer", conn->fd);
     LIST_REMOVE(conns,conn);
     conn_dispose(conn);