]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
urldata: make 'retrycount' a single byte
authorDaniel Stenberg <daniel@haxx.se>
Wed, 15 Oct 2025 08:48:42 +0000 (10:48 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 15 Oct 2025 10:33:03 +0000 (12:33 +0200)
Since it only counts up to 5

Closes #19071

lib/urldata.h

index 30bbbae416e440256de83b38c121fc3a17c9d5c0..e181e294bb27ec0a89227a60fe22ef09dcbac4f9 100644 (file)
@@ -980,8 +980,6 @@ struct UrlState {
   char *first_host;
   int first_remote_port;
   curl_prot_t first_remote_protocol;
-
-  int retrycount; /* number of retries on a new connection */
   int os_errno;  /* filled in with errno whenever an error occurs */
   long followlocation; /* redirect counter */
   int requests; /* request counter: redirects + authentication retakes */
@@ -1103,6 +1101,8 @@ struct UrlState {
 #ifndef CURL_DISABLE_HTTP
   struct http_negotiation http_neg;
 #endif
+  unsigned char retrycount; /* number of retries on a new connection, up to
+                               CONN_MAX_RETRIES */
   unsigned char httpreq; /* Curl_HttpReq; what kind of HTTP request (if any)
                             is this */
   unsigned int creds_from:2; /* where is the server credentials originating