+/*---------- reporting numbers of connections ----------*/
+
+static int conns_max_reported, conns_idle_reported;
+
+void notice_conns_more(const char *new_kind) {
+ if (conns.count > conns_max_reported) {
+ notice("up to %d connections (%s)", conns.count, new_kind);
+ conns_max_reported= conns.count;
+ }
+}
+
+void notice_conns_fewer(void) {
+ if (!conns.count && !conns_idle_reported) {
+ notice("low volume, using intermittent connection");
+ conns_idle_reported= 1;
+ }
+}
+
+void notice_conns_stats(void) {
+ notice("currently %d connection(s)", conns.count);
+ conns_max_reported= conns.count;
+ conns_idle_reported= 0;
+}
+