← Commit list

90325ff044

Daniel Stenberg
Daniel Stenberg
2026-08-05
SUCCESS Duration: 418s

Subject

http2: make server push transfers inherit share from parent

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/http2.c+3 -0
@@ -46,6 +46,7 @@
#include "bufref.h"
#include "curlx/dynbuf.h"
#include "headers.h"
+#include "curl_share.h"
#if NGHTTP2_VERSION_NUM < 0x010f00
#error "nghttp2 1.15.0 or greater required"
@@ -704,6 +705,8 @@ static struct Curl_easy *h2_duphandle(struct Curl_cfilter *cf,
struct h2_stream_ctx *second_stream;
http2_data_setup(cf, second, &second_stream);
second->state.priority.weight = data->state.priority.weight;
+ if(data->share)
+ (void)Curl_share_easy_link(second, data->share);
}
return second;
}