diff options
author | 2025-01-31 09:55:33 -0500 | |
---|---|---|
committer | 2025-01-31 18:24:46 +0000 | |
commit | c385860cfd60fb47f3df76f2b6de288adc4bedc0 (patch) | |
tree | 10333a2629340d8419e667af434effc6ad2113c6 /src/plugins/http | |
parent | 8a7ea1996504264448fc9c0d966331020ae01308 (diff) |
http: http_app_tx_callback check if conn closed
Type: fix
Change-Id: Ic7b9819226742b0f1153ec2794ae80556c49dad2
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins/http')
-rw-r--r-- | src/plugins/http/http.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/http/http.c b/src/plugins/http/http.c index 69b661d0611..faead70e026 100644 --- a/src/plugins/http/http.c +++ b/src/plugins/http/http.c @@ -2575,6 +2575,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; |