From d8e34c757f15e94be8214201fe764fb54ae55903 Mon Sep 17 00:00:00 2001 From: iglocska Date: Fri, 27 Apr 2018 22:32:48 +0200 Subject: [PATCH] fix: low timeout added for module introspection to fix performance bottlenecks --- app/Model/Module.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Model/Module.php b/app/Model/Module.php index 03d7e5014..cbb9fdd8c 100644 --- a/app/Model/Module.php +++ b/app/Model/Module.php @@ -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(