multi: fix "Operation timed out after" timer

Use the local, reasonably updated, 'now' value when creating the message
string to output for the timeout condition.

Fixes #619
This commit is contained in:
Daniel Stenberg 2016-03-23 23:03:08 +01:00
parent 23ab481644
commit 726ae07b07
1 changed files with 1 additions and 1 deletions

View File

@ -1075,7 +1075,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
failf(data, "Operation timed out after %ld milliseconds with %"
CURL_FORMAT_CURL_OFF_T " out of %"
CURL_FORMAT_CURL_OFF_T " bytes received",
Curl_tvdiff(k->now, data->progress.t_startsingle),
Curl_tvdiff(now, data->progress.t_startsingle),
k->bytecount, k->size);
}
else {