From: Daniel Stenberg Date: Mon, 14 Aug 2023 06:38:50 +0000 (+0200) Subject: transfer: don't set TIMER_STARTTRANSFER on first send X-Git-Tag: curl-8_3_0~156 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab3b2c47bd30f0aef23b8487b1cd7d40366dfe7a;p=thirdparty%2Fcurl.git transfer: don't set TIMER_STARTTRANSFER on first send The time stamp is for measuring the first *received* byte Fixes #11669 Reported-by: JazJas on github Closes #11670 --- diff --git a/lib/transfer.c b/lib/transfer.c index b678004b95..b68a571d87 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -824,9 +824,6 @@ static CURLcode readwrite_upload(struct Curl_easy *data, bool sending_http_headers = FALSE; struct SingleRequest *k = &data->req; - if((k->bytecount == 0) && (k->writebytecount == 0)) - Curl_pgrsTime(data, TIMER_STARTTRANSFER); - *didwhat |= KEEP_SEND; do {