Hanno Kranzhoff noticed we didn't properly reset the download/upload counters
before transfers, when doing multiple ones on the same handle.
This commit is contained in:
parent
b1becd0ed5
commit
35d04c5398
@ -913,6 +913,9 @@ CURLcode Curl_readwrite_init(struct connectdata *conn)
|
|||||||
Curl_pgrsTime(data, TIMER_PRETRANSFER);
|
Curl_pgrsTime(data, TIMER_PRETRANSFER);
|
||||||
Curl_speedinit(data);
|
Curl_speedinit(data);
|
||||||
|
|
||||||
|
Curl_pgrsSetUploadCounter(data, 0);
|
||||||
|
Curl_pgrsSetDownloadCounter(data, 0);
|
||||||
|
|
||||||
if (!conn->getheader) {
|
if (!conn->getheader) {
|
||||||
k->header = FALSE;
|
k->header = FALSE;
|
||||||
if(conn->size > 0)
|
if(conn->size > 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user