From 35d04c5398cb0a2cfb54e08f3038227e620c417c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 2 May 2002 08:52:09 +0000 Subject: Hanno Kranzhoff noticed we didn't properly reset the download/upload counters before transfers, when doing multiple ones on the same handle. --- lib/transfer.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/transfer.c') 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) -- cgit v1.2.3