mirror of
https://github.com/curl/curl.git
synced 2026-07-24 05:07:17 +03:00
make very sure that we return 'done' properly when a transfer is done, as
otherwise the multi interface gets problems
This commit is contained in:
parent
203633d34d
commit
9e612b5550
1 changed files with 3 additions and 0 deletions
|
|
@ -718,6 +718,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
|||
infof (data, "Follow to new URL: %s\n", conn->newurl);
|
||||
k->keepon &= ~KEEP_READ;
|
||||
FD_ZERO(&k->rkeepfd);
|
||||
*done = TRUE;
|
||||
return CURLE_OK;
|
||||
}
|
||||
else if (conn->resume_from &&
|
||||
|
|
@ -742,6 +743,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
|||
if(k->timeofdoc < data->set.timevalue) {
|
||||
infof(data,
|
||||
"The requested document is not new enough\n");
|
||||
*done = TRUE;
|
||||
return CURLE_OK;
|
||||
}
|
||||
break;
|
||||
|
|
@ -749,6 +751,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
|||
if(k->timeofdoc > data->set.timevalue) {
|
||||
infof(data,
|
||||
"The requested document is not old enough\n");
|
||||
*done = TRUE;
|
||||
return CURLE_OK;
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue