aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-05-02 08:52:09 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-05-02 08:52:09 +0000
commit35d04c5398cb0a2cfb54e08f3038227e620c417c (patch)
tree909ba1c693655fd6df4116633413d071235d999a
parentb1becd0ed593005edf82b1aa3a596443effd47bf (diff)
Hanno Kranzhoff noticed we didn't properly reset the download/upload counters
before transfers, when doing multiple ones on the same handle.
-rw-r--r--lib/transfer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 0a544e8d2..5517a2fd5 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -913,6 +913,9 @@ CURLcode Curl_readwrite_init(struct connectdata *conn)
Curl_pgrsTime(data, TIMER_PRETRANSFER);
Curl_speedinit(data);
+ Curl_pgrsSetUploadCounter(data, 0);
+ Curl_pgrsSetDownloadCounter(data, 0);
+
if (!conn->getheader) {
k->header = FALSE;
if(conn->size > 0)