aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/http/http_timer.h
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2025-01-27 08:12:22 -0500
committerFlorin Coras <florin.coras@gmail.com>2025-02-11 20:49:38 +0000
commit8e641af0459ec3aeed2b81b95d263440e76b4c47 (patch)
tree039a0e6d9803a76dc6f280424ccf18cb46672c6c /src/plugins/http/http_timer.h
parentc8174f3660d2577c3819b51d65a3f2836d8afe31 (diff)
http: modularization in preparation for h2 and h3HEADmaster
Prepare code to handle multiple http versions and move http/1 specific code into http1.c Type: improvement Change-Id: I1f2c958dadb7721b305c65b2da7c2943695ad740 Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins/http/http_timer.h')
-rw-r--r--src/plugins/http/http_timer.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/http/http_timer.h b/src/plugins/http/http_timer.h
index 43d20d004d8..3bd12f7821d 100644
--- a/src/plugins/http/http_timer.h
+++ b/src/plugins/http/http_timer.h
@@ -16,7 +16,7 @@
#ifndef SRC_PLUGINS_HTTP_HTTP_TIMER_H_
#define SRC_PLUGINS_HTTP_HTTP_TIMER_H_
-#include <http/http.h>
+#include <http/http_private.h>
#include <vppinfra/tw_timer_2t_1w_2048sl.h>
#define HTTP_CONN_TIMEOUT 60
@@ -45,7 +45,8 @@ http_conn_timer_start (http_conn_t *hc)
u32 hs_handle;
ASSERT (hc->timer_handle == HTTP_TIMER_HANDLE_INVALID);
- hs_handle = hc->c_thread_index << 24 | hc->c_c_index;
+ ASSERT (hc->h_hc_index <= 0x00FFFFFF);
+ hs_handle = hc->c_thread_index << 24 | hc->h_hc_index;
clib_spinlock_lock (&twc->tw_lock);
hc->timer_handle =
@@ -79,7 +80,8 @@ http_conn_timer_update (http_conn_t *hc)
tw_timer_update_2t_1w_2048sl (&twc->tw, hc->timer_handle, hc->timeout);
else
{
- hs_handle = hc->c_thread_index << 24 | hc->c_c_index;
+ ASSERT (hc->h_hc_index <= 0x00FFFFFF);
+ hs_handle = hc->c_thread_index << 24 | hc->h_hc_index;
hc->timer_handle =
tw_timer_start_2t_1w_2048sl (&twc->tw, hs_handle, 0, hc->timeout);
}