mirror of
https://github.com/curl/curl.git
synced 2026-07-29 22:58:04 +03:00
Gisle Vanem brings name resolving timeout possibilities to windows people.
This works by magicly starting up a new thread that can be killed when the timeout is reached. testtesttest!
This commit is contained in:
parent
4f953b6459
commit
7d844c430c
3 changed files with 234 additions and 20 deletions
|
|
@ -230,6 +230,10 @@ int fileno( FILE *stream);
|
|||
#error "ares does not yet support IPv6. Disable IPv6 or ares and rebuild"
|
||||
#endif
|
||||
|
||||
#if defined(WIN32) && !defined(__CYGWIN32__) && !defined(USE_ARES) && !defined(ENABLE_IPV6)
|
||||
#define USE_THREADING_GETHOSTBYNAME /* Cygwin uses alarm() function */
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Curl_addrinfo MUST be used for name resolving information.
|
||||
* Information regarding a single IP witin a Curl_addrinfo MUST be stored in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue