mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-11 03:31:36 +00:00
MINOR: connection: don't check priv flag on free
Do not check CO_FL_PRIVATE flag to check if the connection is in session list on conn_free. This is necessary due to the future patches which add server connections in the session list even if not private, if the mux protocol is the subject of HOL blocking.
This commit is contained in:
parent
3d3c0918dc
commit
04a24c5eaa
@ -464,12 +464,10 @@ static inline void conn_force_unsubscribe(struct connection *conn)
|
||||
/* Releases a connection previously allocated by conn_new() */
|
||||
static inline void conn_free(struct connection *conn)
|
||||
{
|
||||
if (conn->flags & CO_FL_PRIVATE) {
|
||||
/* The connection is private, so remove it from the session's
|
||||
* connections list, if any.
|
||||
*/
|
||||
if (LIST_ADDED(&conn->session_list))
|
||||
session_unown_conn(conn->owner, conn);
|
||||
/* If the connection is owned by the session, remove it from its list
|
||||
*/
|
||||
if (LIST_ADDED(&conn->session_list)) {
|
||||
session_unown_conn(conn->owner, conn);
|
||||
}
|
||||
else {
|
||||
if (obj_type(conn->target) == OBJ_TYPE_SERVER)
|
||||
|
Loading…
Reference in New Issue
Block a user