mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-24 12:20:59 +01:00
MINOR: unix: use conn_full_close() instead of conn_force_close()
There's no point in using conn_force_close() in outgoing connect() since XPRT_TRACKED is not set so both functions are equivalent.
This commit is contained in:
parent
3f2770ba27
commit
8c82901958
@ -557,7 +557,7 @@ static int uxst_connect_server(struct connection *conn, int data, int delack)
|
||||
fdtab[fd].linger_risk = 0; /* no need to disable lingering */
|
||||
|
||||
if (conn_xprt_init(conn) < 0) {
|
||||
conn_force_close(conn);
|
||||
conn_full_close(conn);
|
||||
conn->flags |= CO_FL_ERROR;
|
||||
return SF_ERR_RESOURCE;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user