1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-12 04:25:08 -05:00

readwrite_data: repair setting the TIMER_STARTTRANSFER stamp

Regression, broken in commit 65eb65fde6 (curl 7.64.1)

Reported-by: Jonathan Cardoso Machado
Assisted-by: Jay Satiro

Fixes #4136
Closes #4162
This commit is contained in:
Daniel Stenberg 2019-07-29 12:49:05 +02:00
parent cb46b193f1
commit cb542ac4d0
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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 */