From 630f99a7e9da6ae233ce2124c69eb163648c0d19 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 5 Oct 2017 18:13:15 +0200 Subject: [PATCH] MINOR: stream: use conn_full_close() instead of conn_force_close() We simply disable tracking before calling it. --- src/stream.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/stream.c b/src/stream.c index 4ec62833a..2e9b95cac 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)