From 592e132baa0f8a0d00299c207f2e2b57545badea Mon Sep 17 00:00:00 2001 From: Martin Abraham Date: Wed, 21 Jan 2015 22:29:34 +0100 Subject: [PATCH] Set local process timeout to a higher value --- src/Server/Local.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Server/Local.php b/src/Server/Local.php index 9ca04c7a..eefd2c4c 100644 --- a/src/Server/Local.php +++ b/src/Server/Local.php @@ -11,6 +11,8 @@ use Symfony\Component\Process\Process; class Local implements ServerInterface { + const TIMEOUT = 300; + /** * {@inheritdoc} */ @@ -25,7 +27,10 @@ class Local implements ServerInterface public function run($command) { $process = new Process($command); - $process->mustRun(); + $process + ->setTimeout(self::TIMEOUT) + ->setIdleTimeout(self::TIMEOUT) + ->mustRun(); return $process->getOutput(); }