← Commit list

8a867c2062

Stefan Eissing
Stefan Eissing
2026-06-11
SUCCESS Duration: 268s

Subject

h3proxy: no stream userdata

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/vquic/cf-ngtcp2-proxy.c+4 -5
@@ -934,18 +934,17 @@ static CURLcode cf_h3_proxy_submit(struct Curl_cfilter *cf,
int rv;
DEBUGASSERT(stream->id == -1);
- rv = ngtcp2_conn_open_bidi_stream(ctx->qconn, &sid, data);
+ /* Do NOT set `data` as stream user data. The transfer `data` may
+ * get cleaned up long before the tunnel goes down. */
+ rv = ngtcp2_conn_open_bidi_stream(ctx->qconn, &sid, NULL);
if(rv) {
failf(data, "cannot get bidi streams: %s", ngtcp2_strerror(rv));
result = CURLE_SEND_ERROR;
goto out;
}
stream->id = sid;
- ++ctx->used_bidi_streams;
-
- /* Do NOT set `data` as stream user data. The transfer `data` may
- * get cleaned up long before the tunnel goes down. */
ts->stream = stream;
+ ++ctx->used_bidi_streams;
CURL_TRC_CF(data, cf, "[%" PRId64 "] opened bidi stream", sid);
}