From d7616d8a0a804530e5bb1bb04b24de46d9258e3e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 20 May 2007 22:11:47 +0000 Subject: WaitForSingleObject() uses a millisecond timeout and CURL_TIMEOUT_RESOLVE is counted in seconds... --- lib/hostthre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hostthre.c b/lib/hostthre.c index bd7a483c2..15f6b3fd7 100644 --- a/lib/hostthre.c +++ b/lib/hostthre.c @@ -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 */ -- cgit v1.2.3