mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-27 17:16:45 -04:00
MINOR: tcp: 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
dc42acddb6
commit
3f2770ba27
1 changed files with 1 additions and 1 deletions
|
|
@ -545,7 +545,7 @@ int tcp_connect_server(struct connection *conn, int data, int delack)
|
|||
fdtab[fd].linger_risk = 1; /* close hard if needed */
|
||||
|
||||
if (conn_xprt_init(conn) < 0) {
|
||||
conn_force_close(conn);
|
||||
conn_full_close(conn);
|
||||
conn->flags |= CO_FL_ERROR;
|
||||
return SF_ERR_RESOURCE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue