mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:01:41 +03:00
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:
parent
1021c52c92
commit
7e91f24c73
1 changed files with 1 additions and 0 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue