From: Daniel Stenberg <daniel@haxx.se>
Date: Thu, 2 May 2002 08:52:09 +0000 (+0000)
Subject: Hanno Kranzhoff noticed we didn't properly reset the download/upload counters
X-Git-Tag: curl-7_9_7-pre2~25
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=35d04c5398cb0a2cfb54e08f3038227e620c417c;p=curl

Hanno Kranzhoff noticed we didn't properly reset the download/upload counters
before transfers, when doing multiple ones on the same handle.
---

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)