Increased PHPGit timeout to 120 seconds for large repos. Retrieve Readme.md and render on plugins page.

This commit is contained in:
Andrew Manning
2016-05-03 21:49:52 -04:00
parent 2db86b950e
commit 5686ee13b4
4 changed files with 33 additions and 12 deletions

View File

@@ -33,7 +33,7 @@ class PhpProcess extends Process
* @param int $timeout The timeout in seconds
* @param array $options An array of options for proc_open
*/
public function __construct($script, $cwd = null, array $env = null, $timeout = 60, array $options = array())
public function __construct($script, $cwd = null, array $env = null, $timeout = 120, array $options = array())
{
$executableFinder = new PhpExecutableFinder();
if (false === $php = $executableFinder->find()) {

View File

@@ -138,7 +138,7 @@ class Process
*
* @throws RuntimeException When proc_open is not installed
*/
public function __construct($commandline, $cwd = null, array $env = null, $input = null, $timeout = 60, array $options = array())
public function __construct($commandline, $cwd = null, array $env = null, $input = null, $timeout = 120, array $options = array())
{
if (!function_exists('proc_open')) {
throw new RuntimeException('The Process class relies on proc_open, which is not available on your PHP installation.');