[MEDIUM] don't limit peers nor stats socket to maxconn nor maxconnrate
The peers and the stats socket are control sockets, they must not be
limited by traffic rules.
diff --git a/src/peers.c b/src/peers.c
index 26a3154..bbe99d4 100644
--- a/src/peers.c
+++ b/src/peers.c
@@ -1271,7 +1271,8 @@
l->nbconn++; /* warning! right now, it's up to the handler to decrease this */
p->feconn++;/* beconn will be increased later */
jobs++;
- actconn++;
+ if (!(s->listener->options & LI_O_UNLIMITED))
+ actconn++;
totalconn++;
return s;