/!\ ATTENTION if you are using curl multi handles
This function returns 0 in error conditions when run on curl handles accessed via curl_multi_info_read().
You must look at the data returned by curl_multi_info_read() for the true errno. The data is over there instead.