summaryrefslogtreecommitdiff
path: root/lib/urldata.h
diff options
context:
space:
mode:
authorStefan Yohansson <sy.fen0@gmail.com>2020-08-10 13:16:37 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-08-10 23:20:17 +0200
commit50dd05a55249c42b6a355cd0982c8e4da808b263 (patch)
tree72f5c507e4f6ecc6dcc2866c611bc69aafbb18d7 /lib/urldata.h
parent43c68d842ea78944989e420f4cea6531df0e865b (diff)
downloadcurl-50dd05a55249c42b6a355cd0982c8e4da808b263.tar.gz
transfer: move retrycount from connect struct to easy handle
This flag was applied to the connection struct that is released on retry. These changes move the retry counter into Curl_easy struct that lives across retries and retains the new connection. Reported-by: Cherish98 on github Fixes #5794 Closes #5800
Diffstat (limited to 'lib/urldata.h')
-rw-r--r--lib/urldata.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index 332ffb392..8ddb580c8 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -1090,7 +1090,6 @@ struct connectdata {
struct http_connect_state *connect_state; /* for HTTP CONNECT */
struct connectbundle *bundle; /* The bundle we are member of */
int negnpn; /* APLN or NPN TLS negotiated protocol, CURL_HTTP_VERSION* */
- int retrycount; /* number of retries on a new connection */
#ifdef USE_UNIX_SOCKETS
char *unix_domain_socket;
#endif
@@ -1296,6 +1295,8 @@ struct UrlState {
/* Points to the connection cache */
struct conncache *conn_cache;
+ int retrycount; /* number of retries on a new connection */
+
/* buffers to store authentication data in, as parsed from input options */
struct curltime keeps_speed; /* for the progress meter really */