]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: stream: use conn_full_close() instead of conn_force_close()
authorWilly Tarreau <w@1wt.eu>
Thu, 5 Oct 2017 16:02:55 +0000 (18:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 22 Oct 2017 07:54:18 +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/stream.c

index 880327b683a052789b7e282c2b4baeec0ea7000a..4ec62833ace773b54649cf7c652e33841af64651 100644 (file)
@@ -571,7 +571,7 @@ static int sess_update_st_con_tcp(struct stream *s)
                si->exp   = TICK_ETERNITY;
                si->state = SI_ST_CER;
 
-               conn_force_close(srv_conn);
+               conn_full_close(srv_conn);
 
                if (si->err_type)
                        return 0;