Skip to content

Commit a1776f1

Browse files
authored
Update plugin.updater.php
fix stuck General tab in manager admin panel
1 parent 6f85e8b commit a1776f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

assets/plugins/updater/plugin.updater.php

+2
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@
160160
curl_setopt($ch, CURLOPT_REFERER, $url);
161161
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
162162
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
163165
$info = curl_exec($ch);
164166
curl_close($ch);
165167
if (substr($info, 0, 1) != '[') {

0 commit comments

Comments
 (0)