From: Matus Fabian Date: Tue, 5 Aug 2025 19:40:55 +0000 (-0400) Subject: http: h2 client connect-udp fix X-Git-Tag: v26.02-rc0~116 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F24%2F43524%2F1;p=vpp.git http: h2 client connect-udp fix Type: fix Change-Id: I1ce22f70ecd609368ebaee351cbe1d260a6c2536 Signed-off-by: Matus Fabian --- diff --git a/src/plugins/http/http.c b/src/plugins/http/http.c index 094260f1edf..7341bdf7e76 100644 --- a/src/plugins/http/http.c +++ b/src/plugins/http/http.c @@ -896,6 +896,7 @@ http_connect_connection (session_endpoint_cfg_t *sep) (transport_endpt_cfg_http_t *) ext_cfg->data; HTTP_DBG (1, "app set timeout %u", http_cfg->timeout); hc->timeout = http_cfg->timeout; + hc->udp_tunnel_mode = http_cfg->udp_tunnel_mode; if (http_cfg->flags & HTTP_ENDPT_CFG_F_HTTP2_PRIOR_KNOWLEDGE) { HTTP_DBG (1, "app want http2 with prior knowledge"); diff --git a/src/plugins/http/http2/http2.c b/src/plugins/http/http2/http2.c index 103f149a211..24d183d818c 100644 --- a/src/plugins/http/http2/http2.c +++ b/src/plugins/http/http2/http2.c @@ -1062,6 +1062,7 @@ http2_sched_dispatch_req_headers (http2_req_t *req, http_conn_t *hc, { req->base.is_tunnel = 1; req->dispatch_data_cb = http2_sched_dispatch_tunnel; + req->base.upgrade_proto = msg.data.upgrade_proto; if (msg.data.upgrade_proto != HTTP_UPGRADE_PROTO_NA) { if (hc->udp_tunnel_mode == HTTP_UDP_TUNNEL_DGRAM)