[MINOR] listeners: add listen_full() to mark a listener full
This is just a cleanup which removes calls to EV_FD_CLR() and state
setting everywhere in the code.
diff --git a/src/session.c b/src/session.c
index e5ac4ee..6e718c0 100644
--- a/src/session.c
+++ b/src/session.c
@@ -32,6 +32,7 @@
#include <proto/log.h>
#include <proto/session.h>
#include <proto/pipe.h>
+#include <proto/protocols.h>
#include <proto/proto_http.h>
#include <proto/proto_tcp.h>
#include <proto/proxy.h>
@@ -2088,12 +2089,8 @@
actconn--;
jobs--;
s->listener->nbconn--;
- if (s->listener->state == LI_FULL &&
- s->listener->nbconn < s->listener->maxconn) {
- /* we should reactivate the listener */
- EV_FD_SET(s->listener->fd, DIR_RD);
- s->listener->state = LI_READY;
- }
+ if (s->listener->state == LI_FULL)
+ resume_listener(s->listener);
if (unlikely((global.mode & MODE_DEBUG) &&
(!(global.mode & MODE_QUIET) || (global.mode & MODE_VERBOSE)))) {