summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-07-29 12:49:05 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-07-30 23:07:56 +0200
commitcb542ac4d085e9446a9dfc6632fad9a851b507fe (patch)
treedd48a794f17b12fd00518d4e6e7ba1b7c237c10a
parentcb46b193f18d67c92fc30e91171719ecbf666816 (diff)
downloadcurl-cb542ac4d085e9446a9dfc6632fad9a851b507fe.tar.gz
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
-rw-r--r--lib/transfer.c2
1 files changed, 1 insertions, 1 deletions
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 */