]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
transfer: don't set TIMER_STARTTRANSFER on first send
authorDaniel Stenberg <daniel@haxx.se>
Mon, 14 Aug 2023 06:38:50 +0000 (08:38 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 15 Aug 2023 12:52:01 +0000 (14:52 +0200)
The time stamp is for measuring the first *received* byte

Fixes #11669
Reported-by: JazJas on github
Closes #11670

lib/transfer.c

index b678004b95ad25f8cb86cfd617bc618e18d78933..b68a571d879fe5f9221214523321221b76f2afcc 100644 (file)
@@ -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 {