From ab8d771d31f015327b555981992ade034603acf0 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Tue, 21 Jul 2026 10:30:42 +0200 Subject: [PATCH] lib: reader/writer fixes - clear writer paused bit when destroying writer stack - remove the reader paused bit that turned out not to be a good idea follow-up to b41c28e70af47e1 Closes #22361 --- lib/request.h | 1 - lib/sendf.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/request.h b/lib/request.h index 6662cf19e7..ec127cb82e 100644 --- a/lib/request.h +++ b/lib/request.h @@ -109,7 +109,6 @@ struct SingleRequest { * checks, pausing by client callbacks. */ struct { struct Curl_creader *stack; - BIT(paused); } reader; struct bufq sendbuf; /* data which needs to be send to the server */ size_t sendbuf_hds_len; /* amount of header bytes in sendbuf */ diff --git a/lib/sendf.c b/lib/sendf.c index 8f51a772a2..114b550578 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -53,6 +53,7 @@ static void cl_reset_writer(struct Curl_easy *data) curlx_free(writer); writer = data->req.writer.stack; } + data->req.writer.paused = FALSE; } static void cl_reset_reader(struct Curl_easy *data)