http: http2_conn_connect_stream_callback fix 42/43642/3
authorMatus Fabian <[email protected]>
Wed, 27 Aug 2025 20:38:39 +0000 (16:38 -0400)
committerFlorin Coras <[email protected]>
Fri, 29 Aug 2025 19:27:09 +0000 (19:27 +0000)
pass correct opaque to app_worker_connect_notify on max streams hit

Type: fix

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

index ba6e927..b65e334 100644 (file)
@@ -3153,7 +3153,7 @@ http2_conn_connect_stream_callback (http_conn_t *hc, u32 parent_app_api_ctx)
     return -1;
   if (h2c->req_num == h2c->settings.max_concurrent_streams)
     return app_worker_connect_notify (app_wrk, 0, SESSION_E_MAX_STREAMS_HIT,
-                                     hc->hc_pa_app_api_ctx);
+                                     parent_app_api_ctx);
   req = http2_conn_alloc_req (hc, 0);
   http_req_state_change (&req->base, HTTP_REQ_STATE_WAIT_APP_METHOD);
   return http_conn_established (hc, &req->base, parent_app_api_ctx, 1);