We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f85e8b commit a1776f1Copy full SHA for a1776f1
assets/plugins/updater/plugin.updater.php
@@ -160,6 +160,8 @@
160
curl_setopt($ch, CURLOPT_REFERER, $url);
161
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
162
curl_setopt($ch, CURLOPT_HTTPHEADER, array('User-Agent: updateNotify widget'));
163
+ curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0);
164
+ curl_setopt($ch, CURLOPT_TIMEOUT, 4); //timeout in 4 seconds
165
$info = curl_exec($ch);
166
curl_close($ch);
167
if (substr($info, 0, 1) != '[') {
0 commit comments