Skip to content

Commit 1015e96

Browse files
authored
fix timeout
1 parent ecb3913 commit 1015e96

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/BigBlueButton.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,6 @@ private function processXmlResponse($url, $payload = '', $contentType = 'applica
484484
if (!$ch) {
485485
throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch));
486486
}
487-
$timeout = 10;
488487

489488
// Needed to store the JSESSIONID
490489
$cookiefile = tmpfile();
@@ -498,7 +497,7 @@ private function processXmlResponse($url, $payload = '', $contentType = 'applica
498497
curl_setopt($ch, CURLOPT_URL, $url);
499498
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
500499
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
501-
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
500+
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->timeOut);
502501
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefilepath);
503502
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiefilepath);
504503
if (!empty($payload)) {

0 commit comments

Comments
 (0)