cURL / Mailing Lists / curl-library / Single Mail

curl-library

CURLOPT_CONNECTTIMEOUT_MS/CURLOPT_TIMEOUT_MS

From: CHENG LIANG <liangcheng001_at_hotmail.com>
Date: Sun, 30 Jan 2011 02:06:02 +0000

Hi,
 
I have two questions:
 
    1) what kind of configutation should I use to make libcurl work for CURLOPT_CONNECTTIMEOUT_MS?
        I found follwoing from website but I didn't figure out how to compile libcurl to not use standard name resolver.
 
Like CURLOPT_CONNECTTIMEOUT but takes the number of milliseconds instead. If libcurl is built to use the standard system name resolver, that portion of the connect will still use full-second resolution for timeouts with a minimum timeout allowed of one second.
 
 
   2) does option CURLOPT_CONNECTTIMEOUT_MS/CURLOPT_TIMEOUT_MS only used for system name resolver?
does system name resolver is same as convertion from host name to IP address? How about if I use IP address instead of host name in the http request?
 
 
 
Many thanks.
 

Cheng Liang

                                               

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-01-30