]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: stream-int: use conn_full_close() instead of conn_force_close()
authorWilly Tarreau <w@1wt.eu>
Sun, 22 Oct 2017 07:39:11 +0000 (09:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 22 Oct 2017 07:54:18 +0000 (09:54 +0200)
We simply disable tracking before calling it.

include/proto/stream_interface.h

index bafac026b7bc967a331c1fd797e0bebd3acc61ae..70a323425de295c74051d927eece2206285e71fe 100644 (file)
@@ -160,7 +160,8 @@ static inline void si_release_endpoint(struct stream_interface *si)
 
        if ((conn = objt_conn(si->end))) {
                LIST_DEL(&conn->list);
-               conn_force_close(conn);
+               conn_stop_tracking(conn);
+               conn_full_close(conn);
                conn_free(conn);
        }
        else if ((appctx = objt_appctx(si->end))) {