[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.
- [gnurl] 48/264: openssl: remove the BACKEND define kludge, (continued)
- [gnurl] 48/264: openssl: remove the BACKEND define kludge, gnunet, 2020/04/30
- [gnurl] 49/264: gnutls: remove the BACKEND define kludge, gnunet, 2020/04/30
- [gnurl] 44/264: RELEASE-NOTES: synced, gnunet, 2020/04/30
- [gnurl] 51/264: wolfssl: remove the BACKEND define kludge, gnunet, 2020/04/30
- [gnurl] 33/264: ci/tests: increase timeouts for torture builds on Azure Pipelines, gnunet, 2020/04/30
- [gnurl] 59/264: ci/tests: fix Azure Pipelines not running Windows containers, gnunet, 2020/04/30
- [gnurl] 54/264: secure transport: remove the BACKEND define kludge, gnunet, 2020/04/30
- [gnurl] 57/264: cmdline: fix handling of OperationConfig linked list (--next), gnunet, 2020/04/30
- [gnurl] 43/264: http2: Fix erroneous debug message that h2 connection closed, gnunet, 2020/04/30
- [gnurl] 52/264: bearssl: remove the BACKEND define kludge, gnunet, 2020/04/30
- [gnurl] 64/264: CURLINFO_NUM_CONNECTS: improve accuracy,
gnunet <=
- [gnurl] 66/264: getinfo: provide CURLINFO_HEADER_SIZE and CURLINFO_REQUEST_SIZE override, gnunet, 2020/04/30
- [gnurl] 16/264: ci/tests: install test suite dependencies stunnel and impacket, gnunet, 2020/04/30
- [gnurl] 69/264: cirrus: make freebsd ignore the tests instead of skipping, gnunet, 2020/04/30
- [gnurl] 71/264: RELEASE-NOTES: synced, gnunet, 2020/04/30
- [gnurl] 21/264: select: add 'timeout_ms' wrap-around precaution to Curl_select, gnunet, 2020/04/30
- [gnurl] 79/264: travis: update the ngtcp2 build to use the latest OpenSSL patch, gnunet, 2020/04/30
- [gnurl] 70/264: OS400: Update strings for ccsid-ifier, gnunet, 2020/04/30
- [gnurl] 73/264: packages: add OS400/chkstrings.c to the dist, gnunet, 2020/04/30
- [gnurl] 50/264: nss: remove the BACKEND define kludge, gnunet, 2020/04/30
- [gnurl] 62/264: lib/curl_setup: adjust the copyright year range, gnunet, 2020/04/30