try CURLOPT_NOSIGNAL / CURLOPT_TIMEOUT_MS

based on this posting: http://ravidhavlesha.wordpress.com/2012/01/08/curl-timeout-problem-and-solution/