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 561e2fb6e2
This commit is contained in:
Dragan Savic
2019-12-10 21:04:02 +01:00
committed by Jellyfrog
parent b460644c23
commit a0367c4186

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');