diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-07-25 18:38:51 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-07-25 18:38:51 +0000 |
commit | f36adcdb73608502e14a7a9401917925141cde3a (patch) | |
tree | 9fb8ca94a4c12522b08adfb2d117cc2342dea450 | |
parent | 13616f8f96b12bbbec1ca40ea4356560a456cc11 (diff) |
Georg Horn made the transfer timeout error message include more details
-rw-r--r-- | CHANGES | 3 | ||||
-rw-r--r-- | RELEASE-NOTES | 3 | ||||
-rw-r--r-- | lib/transfer.c | 12 |
3 files changed, 14 insertions, 4 deletions
@@ -6,6 +6,9 @@ Changelog +Daniel (25 July 2006) +- Georg Horn made the transfer timeout error message include more details. + Daniel (20 July 2006) - David McCreedy fixed a build error when building libcurl with HTTP disabled, problem added with the curl_formget() patch. diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 56cbce988..1eef7be4f 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -40,6 +40,7 @@ This release would not have looked like this without help, code, reports and advice from friends like these: Dan Fandrich, Peter Silva, Arve Knudsen, Michael Wallner, Toshiyuki Maezawa, - Ingmar Runge, Ates Goral, David McCreedy, Jari Sundell + Ingmar Runge, Ates Goral, David McCreedy, Jari Sundell, Georg Horn, + Gisle Vanem, Yang Tse Thanks! (and sorry if I forgot to mention someone) diff --git a/lib/transfer.c b/lib/transfer.c index 0af351042..2ea07592d 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -1419,9 +1419,15 @@ CURLcode Curl_readwrite(struct connectdata *conn, if (data->set.timeout && ((Curl_tvdiff(k->now, k->start)/1000) >= data->set.timeout)) { - failf(data, "Operation timed out with %" FORMAT_OFF_T - " out of %" FORMAT_OFF_T " bytes received", - k->bytecount, conn->size); + if (conn->size != -1) { + failf(data, "Operation timed out after %d seconds with %" + FORMAT_OFF_T " out of %" FORMAT_OFF_T " bytes received", + data->set.timeout, k->bytecount, conn->size); + } else { + failf(data, "Operation timed out after %d seconds with %" + FORMAT_OFF_T " bytes received", + data->set.timeout, k->bytecount); + } return CURLE_OPERATION_TIMEOUTED; } |