← Commit list

c9fce97dcb

Stefan Eissing
Stefan Eissing
2025-09-25
FAILED Duration: 156s

Subject

cf-h2-proxy: break loop on edge case

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+5 -0
@@ -433,6 +433,11 @@ static int proxy_h2_process_pending_input(struct Curl_cfilter *cf,
*err = CURLE_RECV_ERROR;
return -1;
}
+ else if(!rv) {
+ /* nghttp2 does not want to process more, but has no error. This
+ * probably cannot happen, but be safe. */
+ break;
+ }
Curl_bufq_skip(&ctx->inbufq, (size_t)rv);
if(Curl_bufq_is_empty(&ctx->inbufq)) {
CURL_TRC_CF(data, cf, "[0] all data in connection buffer processed");