mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-20 18:07:49 +00:00
MINOR: stream-int: use si_release_endpoint() to close idle conns
We don't want to open-code the connection close code in si_idle_conn_wake_cb() because we need to centralize some controls.
This commit is contained in:
parent
8255a75e08
commit
c4b56e4470
@ -515,10 +515,7 @@ static int si_idle_conn_wake_cb(struct connection *conn)
|
|||||||
|
|
||||||
if (conn->flags & (CO_FL_ERROR | CO_FL_SOCK_RD_SH)) {
|
if (conn->flags & (CO_FL_ERROR | CO_FL_SOCK_RD_SH)) {
|
||||||
/* warning, we can't do anything on <conn> after this call ! */
|
/* warning, we can't do anything on <conn> after this call ! */
|
||||||
LIST_DEL(&conn->list);
|
si_release_endpoint(si);
|
||||||
conn_force_close(conn);
|
|
||||||
conn_free(conn);
|
|
||||||
si->end = NULL;
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user