diff options
author | 2025-01-27 08:12:22 -0500 | |
---|---|---|
committer | 2025-02-11 20:49:38 +0000 | |
commit | 8e641af0459ec3aeed2b81b95d263440e76b4c47 (patch) | |
tree | 039a0e6d9803a76dc6f280424ccf18cb46672c6c /src/plugins/http/http_timer.h | |
parent | c8174f3660d2577c3819b51d65a3f2836d8afe31 (diff) |
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.h | 8 |
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); } |