Hanno Kranzhoff noticed we didn't properly reset the download/upload counters
authorDaniel Stenberg <daniel@haxx.se>
Thu, 2 May 2002 08:52:09 +0000 (08:52 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 2 May 2002 08:52:09 +0000 (08:52 +0000)
before transfers, when doing multiple ones on the same handle.

lib/transfer.c

index 0a544e8d2ceb77f9ae36ad54a39c603ee7ef0e78..5517a2fd5ab41439822827b97fbd97920f103546 100644 (file)
@@ -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)