Skip to content

Commit 24a6939

Browse files
author
Daniel Neto
committed
Increase CURL connection timeout to 30 minutes for improved reliability
1 parent b2a6b6c commit 24a6939

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

objects/Encoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2282,7 +2282,7 @@ public static function sendToStreamer($target, $postFields, $return_vars = false
22822282
} catch (\Throwable $th) {
22832283
_error_log("sendToStreamer($target, " . json_encode($postFields));
22842284
}
2285-
$timeout = 10;
2285+
$timeout = 1800; // 30 minutes
22862286
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
22872287
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
22882288
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, $timeout);

0 commit comments

Comments
 (0)