Friday, December 5, 2008

pecl_http and sub-second timeouts

Just a quick info, because I forget this again and again--and it's not noted in the documentation yet either.

Sub-second timeouts are supported by libcurl and thus by pecl_http--yes but only if libcurl is built with (c-)ares support:

<quote url="curl_easy_setopt.html">

If libcurl is built to use the standard system name resolver, that portion of the transfer will still use full-second resolution for timeouts with a minimum timeout allowed of one second.