chiark
/
gitweb
/
~ian
/
innduct.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improve logging
[innduct.git]
/
recv.c
diff --git
a/recv.c
b/recv.c
index 115a7831ab00c4ea7e5a5a2a8d95742264cf8b67..00ec7bc22adb4644846466e04d413bc8d0b4f785 100644
(file)
--- a/
recv.c
+++ b/
recv.c
@@
-185,8
+185,9
@@
void *peer_rd_ok(oop_source *lp, oop_read *oread, oop_rd_event ev,
conn->quitting, sani);
} else {
LIST_REMOVE(conns,conn);
conn->quitting, sani);
} else {
LIST_REMOVE(conns,conn);
-
notice
("C%d (now %d) idle connection closed (%s)",
+
info
("C%d (now %d) idle connection closed (%s)",
conn->fd, conns.count, conn->quitting);
conn->fd, conns.count, conn->quitting);
+ notice_conns_fewer();
assert(!busy);
conn_dispose(conn);
}
assert(!busy);
conn_dispose(conn);
}
@@
-223,8
+224,9
@@
void *peer_rd_ok(oop_source *lp, oop_read *oread, oop_rd_event ev,
PEERBADMSG("peer timed us out or stopped accepting articles");
LIST_REMOVE(conns,conn);
PEERBADMSG("peer timed us out or stopped accepting articles");
LIST_REMOVE(conns,conn);
- notice("C%d (now %d) idle connection closed by peer",
- conns.count, conn->fd);
+ info("C%d (now %d) idle connection closed by peer",
+ conns.count, conn->fd);
+ notice_conns_fewer();
conn_dispose(conn);
return OOP_CONTINUE;
conn_dispose(conn);
return OOP_CONTINUE;