Fix Capture Debug page timeout (#10926)

Override symfony 60s execution timeout. Allows the capture page to output discovery and poller process results, if the process lasts longer than 60s.

Similar fix to commit https://github.com/murrant/librenms/commit/561e2fb6e26bc272550dd52684f0733afa0673e9
This commit is contained in:
Dragan Savic
2019-12-10 21:04:02 +01:00
committed by Jellyfrog
parent b460644c23
commit a0367c4186
+2
View File
@@ -54,6 +54,8 @@ switch ($type) {
// ---- Output ----
$proc = new \Symfony\Component\Process\Process($cmd);
$proc->setTimeout(Config::get('snmp.exec_timeout', 1200));
if ($_GET['format'] == 'text') {
header("Content-type: text/plain");
header('X-Accel-Buffering: no');