Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Stop curl signal handling to prevent fast timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Bone committed Feb 21, 2013
1 parent 50c5a9d commit 1358292
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/Ergo/Http/Transport.php
Expand Up @@ -98,6 +98,8 @@ private function _curlConnection($request)
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_PROTOCOLS, (CURLPROTO_HTTP | CURLPROTO_HTTPS));
curl_setopt($curl, CURLOPT_REDIR_PROTOCOLS, (CURLPROTO_HTTP | CURLPROTO_HTTPS));
// Prevents issues with curl timing out much faster than the specified timeout
curl_setopt($curl, CURLOPT_NOSIGNAL, 1);

if (isset($this->_ipFamily))
{
Expand Down

0 comments on commit 1358292

Please sign in to comment.