From: Willy Tarreau Date: Thu, 5 Oct 2017 16:01:29 +0000 (+0200) Subject: MINOR: tcp: use conn_full_close() instead of conn_force_close() X-Git-Tag: v1.8-dev3~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f2770ba2759fce9c6876781fd34ad2b7ec7ad86;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/proto_tcp.c b/src/proto_tcp.c index ff800c8221..e4e6483db0 100644 --- a/src/proto_tcp.c +++ b/src/proto_tcp.c @@ -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; }