mirror of https://github.com/MISP/MISP
fix: low timeout added for module introspection to fix performance bottlenecks
parent
60a7d012c4
commit
d8e34c757f
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue