Skip to content

Conversation

@clue
Copy link
Member

@clueclue commented Dec 21, 2017

We've been able to track this back to legacy PHP bug https://bugs.php.net/bug.php?id=61019 which was fixed via php/php-src@1ec83d4.

This update simply applies the upstream work around to avoid switching to unbuffered mode for pipe streams on PHP < 5.4.28 and PHP < 5.5.12 and thus avoids this issue on all versions. Technically, unbuffered reads aren't really needed here for any PHP version, but not using unbuffered reads shows a 10%-20% performance penalty.

Resolves / closes#40
Refs reactphp/stream#126
Builds on top of #50

@clueclue added this to the v0.5.1 milestone Dec 21, 2017
@WyriHaximusWyriHaximus merged commit 0b55c95 into reactphp:masterDec 21, 2017
@clueclue deleted the legacy-unbuffered branch December 21, 2017 14:48
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Segmentation Fault (core dumped)

3 participants

@clue@jsor@WyriHaximus