Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Process] Broken since v2.2.2 and the 0.2 second start-up timeout #8231

Closed
@Bilge

Description

@Bilge

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions