diff options
author | 2024-12-10 16:15:06 +0100 | |
---|---|---|
committer | 2025-01-09 10:59:16 +0000 | |
commit | c19cca931af3baf847d66bce9e5dd660861fc92e (patch) | |
tree | a36f0ba9f31c379984a3de4dfb54baa8808f5bbe /src/plugins/hs_apps/http_client_cli.c | |
parent | e89c97a3ee1538f3693fcd298831952d5df19ec2 (diff) |
hsa: proxying UDP in HTTP/1.1
Type: feature
Change-Id: Ic0ff9b9bfbad9fbc602fbcec0d8906cd21d63a2c
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins/hs_apps/http_client_cli.c')
-rw-r--r-- | src/plugins/hs_apps/http_client_cli.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/hs_apps/http_client_cli.c b/src/plugins/hs_apps/http_client_cli.c index 861af7f03e2..b9658ed10d0 100644 --- a/src/plugins/hs_apps/http_client_cli.c +++ b/src/plugins/hs_apps/http_client_cli.c @@ -409,9 +409,10 @@ hcc_connect () a->app_index = hcm->app_index; /* set http (response) timeout to 10 seconds */ + transport_endpt_cfg_http_t http_cfg = { 10, 0 }; ext_cfg = session_endpoint_add_ext_cfg ( - &a->sep_ext, TRANSPORT_ENDPT_EXT_CFG_HTTP, sizeof (ext_cfg->opaque)); - ext_cfg->opaque = 10; + &a->sep_ext, TRANSPORT_ENDPT_EXT_CFG_HTTP, sizeof (http_cfg)); + clib_memcpy (ext_cfg->data, &http_cfg, sizeof (http_cfg)); /* allocate http session on main thread */ wrk = hcc_worker_get (0); |