]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
WaitForSingleObject() uses a millisecond timeout and CURL_TIMEOUT_RESOLVE is
authorDaniel Stenberg <daniel@haxx.se>
Sun, 20 May 2007 22:11:47 +0000 (22:11 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 20 May 2007 22:11:47 +0000 (22:11 +0000)
counted in seconds...

lib/hostthre.c

index bd7a483c2c9a6ea61d027c4dca3d1ea7c91e0e5f..15f6b3fd7d0f811b62b800eb158e475495bcc3b1 100644 (file)
@@ -595,7 +595,7 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
   timeout =
     conn->data->set.connecttimeout ? conn->data->set.connecttimeout :
     conn->data->set.timeout ? conn->data->set.timeout :
-    CURL_TIMEOUT_RESOLVE; /* default name resolve timeout */
+    CURL_TIMEOUT_RESOLVE * 1000; /* default name resolve timeout */
   ticks = GetTickCount();
 
   /* wait for the thread to resolve the name */