Since LIST_DEL_LOCKED() and LIST_POP_LOCKED() now automatically reinitialize
the removed element, there's no need for keeping this LIST_INIT() call in the
idle connection code.
conn_force_unsubscribe(conn);
LIST_DEL_LOCKED(&conn->list);
- LIST_INIT(&conn->list);
pool_free(pool_head_connection, conn);
}
(((s->be->options & PR_O_REUSE_MASK) != PR_O_REUSE_NEVR) &&
s->txn && (s->txn->flags & TX_NOT_FIRST)))) {
srv_conn = LIST_POP_LOCKED(&srv->idle_orphan_conns[tid],
- struct connection *, list);
- if (srv_conn) {
- LIST_INIT(&srv_conn->list);
+ struct connection *, list);
+ if (srv_conn)
reuse_orphan = 1;
- }
}
/* If we've picked a connection from the pool, we now have to
while ((conn = LIST_POP_LOCKED(&toremove_connections[tid],
struct connection *, list)) != NULL) {
- LIST_INIT(&conn->list);
conn->mux->destroy(conn);
}