Skip to content

Commit

Permalink
Merge pull request #188 from iamEAP/timeout
Browse files Browse the repository at this point in the history
Fix infinite loop caused by edge case during terminus_job_poll()
  • Loading branch information
mikevanwinkle committed Nov 19, 2014
2 parents 35a9739 + 8f0961f commit dd3e8f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terminus.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3760,7 +3760,7 @@ function terminus_validate_session($data) {
*/
function terminus_request($realm, $uuid, $path = FALSE, $method = 'GET', $data = NULL) {
static $ch = FALSE;
if (!$ch) {
if (gettype($ch) !== 'resource') {
$ch = curl_init();
}
$headers = array();
Expand Down Expand Up @@ -3795,7 +3795,7 @@ function terminus_request($realm, $uuid, $path = FALSE, $method = 'GET', $data =
CURLOPT_HEADER => 1,
CURLOPT_PORT => TERMINUS_PORT,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_TIMEOUT => 30,
CURLOPT_TIMEOUT => 45,
CURLOPT_CUSTOMREQUEST => $method,
CURLOPT_COOKIE => $session_data['session'],
CURLOPT_HTTPHEADER => $headers,
Expand Down

0 comments on commit dd3e8f2

Please sign in to comment.