From 8c82901958bc21970f90b334c5e0f36bf7918d69 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 5 Oct 2017 18:02:11 +0200 Subject: [PATCH] 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. --- src/proto_uxst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto_uxst.c b/src/proto_uxst.c index 207bb00d2..4210f5d20 100644 --- a/src/proto_uxst.c +++ b/src/proto_uxst.c @@ -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; }