From: Daniel Stenberg Date: Mon, 29 Jul 2019 10:49:05 +0000 (+0200) Subject: readwrite_data: repair setting the TIMER_STARTTRANSFER stamp X-Git-Tag: curl-7_66_0~187 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb542ac4d085e9446a9dfc6632fad9a851b507fe;p=curl readwrite_data: repair setting the TIMER_STARTTRANSFER stamp Regression, broken in commit 65eb65fde64bd5f (curl 7.64.1) Reported-by: Jonathan Cardoso Machado Assisted-by: Jay Satiro Fixes #4136 Closes #4162 --- diff --git a/lib/transfer.c b/lib/transfer.c index b9bb5f6ed..18d805d64 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -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 */