mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
MINOR: session: use conn_full_close() instead of conn_force_close()
We simply disable tracking before calling it.
This commit is contained in:
parent
402dbc11d5
commit
5b78a9dd04
1 changed files with 3 additions and 2 deletions
|
|
@ -264,7 +264,7 @@ int session_accept_fd(struct listener *l, int cfd, struct sockaddr_storage *addr
|
|||
out_free_sess:
|
||||
session_free(sess);
|
||||
out_free_conn:
|
||||
cli_conn->flags &= ~CO_FL_XPRT_TRACKED;
|
||||
conn_stop_tracking(cli_conn);
|
||||
conn_xprt_close(cli_conn);
|
||||
conn_free(cli_conn);
|
||||
out_close:
|
||||
|
|
@ -358,7 +358,8 @@ static void session_kill_embryonic(struct session *sess)
|
|||
}
|
||||
|
||||
/* kill the connection now */
|
||||
conn_force_close(conn);
|
||||
conn_stop_tracking(conn);
|
||||
conn_full_close(conn);
|
||||
conn_free(conn);
|
||||
|
||||
listener_release(sess->listener);
|
||||
|
|
|
|||
Loading…
Reference in a new issue