aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2024-11-01 16:11:02 -0400
committerFlorin Coras <florin.coras@gmail.com>2024-11-01 22:13:36 +0000
commit7e70b1f0c48bda18905f37353317e20e766dd800 (patch)
treeb8cb07e62eadabe25a7d8bd4da03c3d14a463285
parentce4635c4a79543654e8825614138f1d58b6d785c (diff)
http: fix invalid listener handle timeout config
- Fixes this assert() in make test-debug testcase: make test-debug TEST=test_http_static.TestHttpStaticVapi.test_http_static_vapi ... vpp[441]: /vpp/src/vppinfra/tw_timer_template.c:301 (tw_timer_start_2t_1w_2048sl) assertion `interval' fails Type: fix Change-Id: Ic6040957f48ab578affa5b1cf7dfdf4be27c4c56 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
-rw-r--r--src/plugins/http/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/http/http.c b/src/plugins/http/http.c
index 8c145da7b20..1a92797c50b 100644
--- a/src/plugins/http/http.c
+++ b/src/plugins/http/http.c
@@ -1917,7 +1917,7 @@ http_start_listen (u32 app_listener_index, transport_endpoint_cfg_t *tep)
lhc = http_listener_get (lhc_index);
ext_cfg = session_endpoint_get_ext_cfg (sep, TRANSPORT_ENDPT_EXT_CFG_HTTP);
- if (ext_cfg)
+ if (ext_cfg && ext_cfg->opaque)
{
HTTP_DBG (1, "app set timeout %u", ext_cfg->opaque);
lhc->timeout = ext_cfg->opaque;