From c24fff3ff257af2bd6240263fda6c2f6c8a6e2f2 Mon Sep 17 00:00:00 2001 From: Matus Fabian Date: Fri, 31 Jan 2025 09:55:33 -0500 Subject: [PATCH] http: http_app_tx_callback check if conn closed Type: fix Change-Id: Ic7b9819226742b0f1153ec2794ae80556c49dad2 Signed-off-by: Matus Fabian (cherry picked from commit 30bd270eb48fb43c62913a93d5dd4878cf6920d1) --- src/plugins/http/http.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/plugins/http/http.c b/src/plugins/http/http.c index 666f45c7d8f..c7e61c333fb 100644 --- a/src/plugins/http/http.c +++ b/src/plugins/http/http.c @@ -2537,6 +2537,13 @@ http_app_tx_callback (void *session, transport_send_params_t *sp) hc = http_conn_get_w_thread (as->connection_index, as->thread_index); + if (hc->state == HTTP_CONN_STATE_CLOSED) + { + HTTP_DBG (1, "conn closed"); + svm_fifo_dequeue_drop_all (as->tx_fifo); + return 0; + } + max_burst_sz = sp->max_burst_size * TRANSPORT_PACER_MIN_MSS; sp->max_burst_size = max_burst_sz; -- 2.16.6