]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: unix: use conn_full_close() instead of conn_force_close()
authorWilly Tarreau <w@1wt.eu>
Thu, 5 Oct 2017 16:02:11 +0000 (18:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 22 Oct 2017 07:54:17 +0000 (09:54 +0200)
There's no point in using conn_force_close() in outgoing connect()
since XPRT_TRACKED is not set so both functions are equivalent.

src/proto_uxst.c

index 207bb00d2a39f0508d07ca4b1a0df41457d67d17..4210f5d20247d0187923dc9bca2550120aadadff 100644 (file)
@@ -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;
        }