aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2024-09-30 13:52:12 +0200
committerMatus Fabian <matfabia@cisco.com>2024-09-30 13:54:37 +0200
commit38e94c3461020f77d2a3cff0511f3a727be8af1a (patch)
treeecc64b8227e65a68150b928f9ebee408bd099f84 /src/plugins
parent5a4c7a9ce4162f8f9fb397d6b9b59e7fe59beeea (diff)
http: http_state_wait_server_reply fix
We enqueue 2 segments to app, first is masg (http_msg_t) and second as much as possible of the raw data, so it must be: max_enq - sizeof (msg) Type: fix Change-Id: Ib7ece7e0ad1aac99d687d49149f1bccea599b10f Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/http/http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/http/http.c b/src/plugins/http/http.c
index 4f741c2e6b4..f1f59b41519 100644
--- a/src/plugins/http/http.c
+++ b/src/plugins/http/http.c
@@ -955,6 +955,7 @@ http_state_wait_server_reply (http_conn_t *hc, transport_send_params_t *sp)
* if there is some space send also portion of body */
as = session_get_from_handle (hc->h_pa_session_handle);
max_enq = svm_fifo_max_enqueue (as->rx_fifo);
+ max_enq -= sizeof (msg);
if (max_enq < hc->control_data_len)
{
clib_warning ("not enough room for control data in app's rx fifo");