http: h2 client connect-udp fix 24/43524/1
authorMatus Fabian <[email protected]>
Tue, 5 Aug 2025 19:40:55 +0000 (15:40 -0400)
committerMatus Fabian <[email protected]>
Tue, 5 Aug 2025 19:40:55 +0000 (15:40 -0400)
Type: fix

Change-Id: I1ce22f70ecd609368ebaee351cbe1d260a6c2536
Signed-off-by: Matus Fabian <[email protected]>
src/plugins/http/http.c
src/plugins/http/http2/http2.c

index 094260f..7341bdf 100644 (file)
@@ -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");
index 103f149..24d183d 100644 (file)
@@ -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)