cw-out: fix EAGAIN handling on pause

The interim CURLE_AGAIN result was not always converted to a
CURLE_OK and then caused write callers to report a failure.

Fixes #19334
Reported-by: pennae on github
Closes #19338
This commit is contained in:
Stefan Eissing 2025-11-03 15:07:57 +01:00 committed by Daniel Stenberg
parent 1021c52c92
commit 7e91f24c73
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -302,6 +302,7 @@ static CURLcode cw_out_buf_flush(struct cw_out_ctx *ctx,
&consumed);
if(result && (result != CURLE_AGAIN))
return result;
result = CURLE_OK;
if(consumed) {
if(consumed == curlx_dyn_len(&cwbuf->b)) {