← Commit list

12d6d8e26f

Stefan Eissing
Stefan Eissing
2026-05-16
SUCCESS Duration: 243s

Subject

cf-h2-proxy: drop interim responses

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/cf-h2-proxy.c+3 -2
@@ -561,7 +561,7 @@ static int proxy_h2_on_header(nghttp2_session *session,
struct http_resp *resp;
/* status: always comes first, we might get more than one response,
- * link the previous ones for keepers */
+ * discard previous, interim responses */
result = Curl_http_decode_status(&http_status,
(const char *)value, valuelen);
if(result)
@@ -569,7 +569,8 @@ static int proxy_h2_on_header(nghttp2_session *session,
result = Curl_http_resp_make(&resp, http_status, NULL);
if(result)
return NGHTTP2_ERR_CALLBACK_FAILURE;
- resp->prev = ctx->tunnel.resp;
+ if(ctx->tunnel.resp)
+ Curl_http_resp_free(ctx->tunnel.resp);
ctx->tunnel.resp = resp;
CURL_TRC_CF(data, cf, "[%d] status: HTTP/2 %03d",
stream_id, ctx->tunnel.resp->status);