MINOR: servers: Kill priv_conns.
Remove the list of private connections from server, it has been largely
unused, we only inserted connections in it, but we would never actually
use it.
diff --git a/src/mux_h1.c b/src/mux_h1.c
index 7260629..9edbaea 100644
--- a/src/mux_h1.c
+++ b/src/mux_h1.c
@@ -2425,12 +2425,12 @@
struct server *srv = objt_server(h1c->conn->target);
if (srv) {
- if (h1c->conn->flags & CO_FL_PRIVATE)
- LIST_ADD(&srv->priv_conns[tid], &h1c->conn->list);
- else if (is_not_first)
- LIST_ADD(&srv->safe_conns[tid], &h1c->conn->list);
- else
- LIST_ADD(&srv->idle_conns[tid], &h1c->conn->list);
+ if (!(h1c->conn->flags & CO_FL_PRIVATE)) {
+ if (is_not_first)
+ LIST_ADD(&srv->safe_conns[tid], &h1c->conn->list);
+ else
+ LIST_ADD(&srv->idle_conns[tid], &h1c->conn->list);
+ }
TRACE_DEVEL("connection in idle server list", H1_EV_STRM_END, h1c->conn);
}
}