diff --git a/include/proto/session.h b/include/proto/session.h index eabebb85af..a80f97dc13 100644 --- a/include/proto/session.h +++ b/include/proto/session.h @@ -120,7 +120,7 @@ static inline int session_add_conn(struct session *sess, struct connection *conn /* Returns 0 if the session can keep the idle conn, -1 if it was destroyed, or 1 if it was added to the server list */ static inline int session_check_idle_conn(struct session *sess, struct connection *conn) { - if (sess->idle_conns > sess->fe->max_out_conns) { + if (sess->idle_conns >= sess->fe->max_out_conns) { /* We can't keep the connection, let's try to add it to the server idle list */ session_unown_conn(sess, conn); conn->owner = NULL;