curl-library
Re: Reset of Curl Progress Values
Date: Thu, 2 May 2002 09:19:26 +0200 (MET DST)
On Tue, 30 Apr 2002, Hanno L. Kranzhoff wrote:
> I'm using libcurl 7.9.6 easy interface on Win32 to transfer data via
> HTTP-Posts. When reusing the same curl handle to upload multiple files, the
> progress data (the download size) is not being reset between subsequent
> calls to easy_perform() until the upload finishes.
I would guess that the following patch cures this problem:
diff -u -r1.94 transfer.c
--- transfer.c 17 Apr 2002 07:16:49 -0000 1.94
+++ transfer.c 2 May 2002 07:18:13 -0000
@@ -913,6 +913,9 @@
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)
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/ _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: bandwidth_at_sourceforge.netReceived on 2002-05-02