Merge pull request #147 from mabrahamde/master

Set local process timeout to a higher value
This commit is contained in:
Anton Medvedev 2015-01-22 15:19:56 +03:00
commit 0765536fcf

View File

@ -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();
}