kriswallsmith/assetic — pull request #277 by steveybaby2 (2012-08-10 15:13:46+00:00)
Title: [Filters] Fixed issue with Yui process timing out by providing a setTimeout function

Following on from pull request https://github.com/kriswallsmith/assetic/pull/276, submitting request to pull from my master branch.

- provide a setTimeout method to specify the timeout that the process can run for (currently hardcoded to 60 seconds)
- provide a means that this can be applied to other filters which use the ProcessBuilder

Hi,

There has been some discussion over an issue where filter processes such as yui_css are timing out on slower platforms such as Amazon micro instances, because the timeout is hardcoded as 60 seconds.

https://github.com/kriswallsmith/assetic/issues/250

This change provides a means to set the timeout for yui_css and yui_js (and can be applied to any ProcessBuilder based filter), and there is a follow-up pull request to the AsseticBundle to allow this to be set within the config of assetic (I'll carry this out after this one).

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets:
Todo: N/A
License of the code: Any - free to include under current license
Documentation PR: https://github.com/kriswallsmith/assetic/issues/250

Cheers
Steve