fix: low timeout added for module introspection to fix performance bottlenecks

pull/2586/merge
iglocska 2018-04-27 22:32:48 +02:00
parent 60a7d012c4
commit d8e34c757f
1 changed files with 4 additions and 0 deletions

View File

@ -165,6 +165,10 @@ class Module extends AppModel {
$settings[$sslSetting] = Configure::read('Plugin.' . $moduleFamily . '_' . $sslSetting);
}
}
// let's set a low timeout for the introspection so that we don't block the loading of pages due to a misconfigured modules
if ($uri == '/modules') {
$settings['timeout'] = 1;
}
$httpSocket = new HttpSocket($settings);
$request = array(
'header' => array(