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:
Daniel Stenberg 2004-02-20 16:41:50 +00:00
parent 4f953b6459
commit 7d844c430c
3 changed files with 234 additions and 20 deletions

View file

@ -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