pecl_http and sub-second timeouts

Posted by m6w6 on 5th December 2008 in Mike's sudden inspirations: PHP

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.

</quote>