From: Willy Tarreau Date: Thu, 5 Oct 2017 16:13:15 +0000 (+0200) Subject: MINOR: stream: use conn_full_close() instead of conn_force_close() X-Git-Tag: v1.8-dev3~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=630f99a7e9da6ae233ce2124c69eb163648c0d19;p=thirdparty%2Fhaproxy.git MINOR: stream: use conn_full_close() instead of conn_force_close() We simply disable tracking before calling it. --- diff --git a/src/stream.c b/src/stream.c index 4ec62833ac..2e9b95cac4 100644 --- a/src/stream.c +++ b/src/stream.c @@ -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)