← Commit list

11df32bc8e

Paolo Ganci
Paolo Ganci
2026-09-17
SUCCESS Duration: 412s

Subject

http2: don't send a CURLE_SEND_ERROR after a valid http2 response

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+1 -1
@@ -2249,7 +2249,7 @@ static CURLcode cf_h2_send(struct Curl_cfilter *cf, struct Curl_easy *data,
/* if the stream has been closed in egress handling (nghttp2 does that
* when it does not like the headers, for example */
- if(stream && stream->closed) {
+ if(stream && stream->closed && !stream->resp_hds_complete) {
infof(data, "stream %d closed", stream->id);
result = CURLE_SEND_ERROR;
goto out;