[MEDIUM] remove cli_fd, srv_fd, cli_state and srv_state from the session
Those were previously used by the unix sockets only, and could be
removed.
diff --git a/src/proto_uxst.c b/src/proto_uxst.c
index 0cb365c..b3bf754 100644
--- a/src/proto_uxst.c
+++ b/src/proto_uxst.c
@@ -441,7 +441,6 @@
s->fe = NULL;
s->be = NULL;
- s->cli_state = CL_STDATA;
s->ana_state = 0;
s->req = s->rep = NULL; /* will be allocated later */
@@ -454,7 +453,6 @@
s->si[0].fd = cfd;
s->si[0].flags = SI_FL_NONE;
s->si[0].exp = TICK_ETERNITY;
- s->cli_fd = cfd;
s->si[1].state = s->si[1].prev_state = SI_ST_INI;
s->si[1].err_type = SI_ET_NONE;
@@ -939,7 +937,7 @@
}
actconn--;
- listener = fdtab[s->cli_fd].listener;
+ listener = fdtab[s->si[0].fd].listener;
if (listener) {
listener->nbconn--;
if (listener->state == LI_FULL &&