Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
8a7ea19
)
http: http_app_tx_callback check if conn closed
97/42297/2
author
Matus Fabian
<
[email protected]
>
Fri, 31 Jan 2025 14:55:33 +0000
(09:55 -0500)
committer
Florin Coras
<
[email protected]
>
Fri, 31 Jan 2025 18:24:46 +0000
(18:24 +0000)
Type: fix
Change-Id: Ic7b9819226742b0f1153ec2794ae80556c49dad2
Signed-off-by: Matus Fabian <
[email protected]
>
src/plugins/http/http.c
patch
|
blob
|
history
diff --git
a/src/plugins/http/http.c
b/src/plugins/http/http.c
index
69b661d
..
faead70
100644
(file)
--- 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;