gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 64/264: CURLINFO_NUM_CONNECTS: improve accuracy


From: gnunet
Subject: [gnurl] 64/264: CURLINFO_NUM_CONNECTS: improve accuracy
Date: Thu, 30 Apr 2020 16:06:07 +0200

This is an automated email from the git hooks/post-receive script.

nikita pushed a commit to branch master
in repository gnurl.

commit 48526614267ce6c3262174fc1b4bb45cc94ee4eb
Author: Daniel Stenberg <address@hidden>
AuthorDate: Sun Mar 22 11:49:16 2020 +0100

    CURLINFO_NUM_CONNECTS: improve accuracy
    
    The counter was not bumped in all cases correctly.
    
    Reported-by: Marcel Raad
    Ref: #5131
    Closes #5135
---
 lib/connect.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/connect.c b/lib/connect.c
index 5e631baa9..8cfdbf3af 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -807,6 +807,7 @@ static void post_SOCKS(struct connectdata *conn,
     Curl_pgrsTime(conn->data, TIMER_CONNECT); /* connect done */
   Curl_updateconninfo(conn, conn->sock[sockindex]);
   Curl_verboseconnect(conn);
+  conn->data->info.numconnects++; /* to track the number of connections made */
 }
 
 /*
@@ -1343,7 +1344,6 @@ CURLcode Curl_connecthost(struct connectdata *conn,  /* 
context */
   if(result)
     return result;
 
-  data->info.numconnects++; /* to track the number of connections made */
   Curl_expire(conn->data, data->set.happy_eyeballs_timeout,
               EXPIRE_HAPPY_EYEBALLS);
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]