]> granicus.if.org Git - curl/commitdiff
readwrite_data: repair setting the TIMER_STARTTRANSFER stamp
authorDaniel Stenberg <daniel@haxx.se>
Mon, 29 Jul 2019 10:49:05 +0000 (12:49 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 30 Jul 2019 21:07:56 +0000 (23:07 +0200)
Regression, broken in commit 65eb65fde64bd5f (curl 7.64.1)

Reported-by: Jonathan Cardoso Machado
Assisted-by: Jay Satiro
Fixes #4136
Closes #4162

lib/transfer.c

index b9bb5f6edd45748b32d89b7fac29025515255098..18d805d64c5fb2a214004550990796fa79d964b6 100644 (file)
@@ -601,7 +601,7 @@ static CURLcode readwrite_data(struct Curl_easy *data,
       nread = 0;
     }
 
-    if((k->bytecount == 0) && (k->writebytecount == 0)) {
+    if(!k->bytecount) {
       Curl_pgrsTime(data, TIMER_STARTTRANSFER);
       if(k->exp100 > EXP100_SEND_DATA)
         /* set time stamp to compare with when waiting for the 100 */