diff options
Diffstat (limited to 'libs/libcurl/src/asyn.h')
-rw-r--r-- | libs/libcurl/src/asyn.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libs/libcurl/src/asyn.h b/libs/libcurl/src/asyn.h index 194cab2c93..50cd7e858b 100644 --- a/libs/libcurl/src/asyn.h +++ b/libs/libcurl/src/asyn.h @@ -39,9 +39,9 @@ struct Curl_dns_entry; /* Data for synchronization between resolver thread and its parent */
struct thread_sync_data {
- curl_mutex_t *mtx;
char *hostname; /* hostname to resolve, Curl_async.hostname
duplicate */
+ curl_mutex_t mutx;
#ifndef CURL_DISABLE_SOCKETPAIR
curl_socket_t sock_pair[2]; /* eventfd/pipes/socket pair */
#endif
@@ -49,7 +49,6 @@ struct thread_sync_data { #ifdef HAVE_GETADDRINFO
struct addrinfo hints;
#endif
- struct thread_data *td; /* for thread-self cleanup */
int port;
int sock_error;
bool done;
@@ -59,11 +58,15 @@ struct thread_data { curl_thread_t thread_hnd;
unsigned int poll_interval;
timediff_t interval_end;
+ struct curltime start;
struct thread_sync_data tsd;
+ CURLcode result; /* CURLE_OK or error handling response */
#if defined(USE_HTTPSRR) && defined(USE_ARES)
struct Curl_https_rrinfo hinfo;
ares_channel channel;
+ int num_pending; /* number of outstanding c-ares requests */
#endif
+ bool init;
};
#elif defined(CURLRES_ARES) /* CURLRES_THREADED */
@@ -73,13 +76,14 @@ struct thread_data { struct Curl_addrinfo *temp_ai; /* intermediary result while fetching c-ares
parts */
int last_status;
+ CURLcode result; /* CURLE_OK or error handling response */
#ifndef HAVE_CARES_GETADDRINFO
struct curltime happy_eyeballs_dns_time; /* when this timer started, or 0 */
#endif
#ifdef USE_HTTPSRR
struct Curl_https_rrinfo hinfo;
#endif
- char hostname[1];
+ char *hostname;
};
#endif /* CURLRES_ARES */
@@ -173,7 +177,7 @@ void Curl_resolver_kill(struct Curl_easy *data); /* Curl_resolver_getsock()
*
- * This function is called from the multi_getsock() function. 'sock' is a
+ * This function is called from the Curl_multi_getsock() function. 'sock' is a
* pointer to an array to hold the file descriptors, with 'numsock' being the
* size of that array (in number of entries). This function is supposed to
* return bitmask indicating what file descriptors (referring to array indexes
|