mirror of
https://github.com/curl/curl.git
synced 2026-07-26 21:27:18 +03:00
request: paused upload on completed download, assess connection
A transfer with a completed download that is still uploading needs to check the connection state when it is PAUSEd, since connection close/errors would otherwise go unnoticed. Reported-by: Sergey Bronnikov Fixes #13260 Closes #13271
This commit is contained in:
parent
d5e83eb745
commit
cfc65fd1ee
7 changed files with 321 additions and 8 deletions
|
|
@ -395,6 +395,7 @@ CURLcode Curl_req_send_more(struct Curl_easy *data)
|
|||
result = req_flush(data);
|
||||
if(result == CURLE_AGAIN)
|
||||
result = CURLE_OK;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -272,10 +272,9 @@ static CURLcode readwrite_data(struct Curl_easy *data,
|
|||
DEBUGF(infof(data, "nread == 0, stream closed, bailing"));
|
||||
else
|
||||
DEBUGF(infof(data, "nread <= 0, server closed connection, bailing"));
|
||||
if(k->eos_written) { /* already did write this to client, leave */
|
||||
k->keepon = 0; /* stop sending as well */
|
||||
k->keepon = 0; /* stop sending as well */
|
||||
if(k->eos_written) /* already did write this to client, leave */
|
||||
break;
|
||||
}
|
||||
}
|
||||
total_received += blen;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue