Closed
Description
Since v2.2.2 line 312 reads: $n = @stream_select($r, $w, $e, 0, ceil(static::TIMEOUT_PRECISION * 1E6));
If $n = 0
then it throws a RuntimeException
, 'The process timed out.'
.
This causes all my processes that are slow to start up (e.g. heavy Perl scripts) to fail because if they don't produce any output in 0.2 seconds they are terminated. This behaviour is nonsense and doesn't even respect the class's $timeout setting. It's fine to poll the process every 0.2 seconds but don't treat it as dead if it doesn't produce output in the first cycle.