]> 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:13:15 +0000 (18:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 22 Oct 2017 07:54:18 +0000 (09:54 +0200)
We simply disable tracking before calling it.

src/stream.c

index 4ec62833ace773b54649cf7c652e33841af64651..2e9b95cac4a89f33adda0654b584e314c8d91430 100644 (file)
@@ -334,8 +334,10 @@ static void stream_free(struct stream *s)
                http_end_txn(s);
 
        /* ensure the client-side transport layer is destroyed */
-       if (cli_conn)
-               conn_force_close(cli_conn);
+       if (cli_conn) {
+               conn_stop_tracking(cli_conn);
+               conn_full_close(cli_conn);
+       }
 
        for (i = 0; i < s->store_count; i++) {
                if (!s->store[i].ts)