From 8ba76fe6d258155c50abd34c6995f6907be78cbb Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 27 Feb 2012 11:35:26 +0100 Subject: [PATCH] Boost default timeout to 5min --- doc/04-schema.md | 2 +- src/Composer/Factory.php | 2 +- src/Composer/Util/ProcessExecutor.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/04-schema.md b/doc/04-schema.md index d096ad3b5..05c7cc960 100644 --- a/doc/04-schema.md +++ b/doc/04-schema.md @@ -321,7 +321,7 @@ The following options are supported: different directory if you want to. * **bin-dir:** Defaults to `vendor/bin`. If a project includes binaries, they will be symlinked into this directory. -* **process-timeout:** Defaults to `60`. The duration processes like git clones +* **process-timeout:** Defaults to `300`. The duration processes like git clones can run before Composer assumes they died out. You may need to make this higher if you have a slow connection or huge vendors. diff --git a/src/Composer/Factory.php b/src/Composer/Factory.php index a9b990f2a..cf70c4c74 100644 --- a/src/Composer/Factory.php +++ b/src/Composer/Factory.php @@ -52,7 +52,7 @@ class Factory // Configuration defaults $composerConfig = array( 'vendor-dir' => 'vendor', - 'process-timeout' => 60, + 'process-timeout' => 300, ); $packageConfig = $file->read(); diff --git a/src/Composer/Util/ProcessExecutor.php b/src/Composer/Util/ProcessExecutor.php index fef4de96a..5bce6c73c 100644 --- a/src/Composer/Util/ProcessExecutor.php +++ b/src/Composer/Util/ProcessExecutor.php @@ -19,7 +19,7 @@ use Symfony\Component\Process\Process; */ class ProcessExecutor { - static protected $timeout = 60; + static protected $timeout = 300; /** * runs a process on the commandline