Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle parser errors by emitting error and closing connection #159

Merged
merged 2 commits into from
Sep 6, 2022

Conversation

clue
Copy link
Contributor

@clue clue commented Aug 23, 2022

This changeset makes the parser more robust by splitting on individual package boundaries and handles parser errors by emitting error and closing connection. This should have no effect for well-behaving servers, but makes our parser more robust for misbehaving servers or servers sending invalid data (intentionally or otherwise).

Together with the analysis in ticket #123 and the work done in #158, you're looking at around two days of work, enjoy!

Builds on top of #158
Refs #123

@clue clue added this to the v0.5.7 milestone Aug 23, 2022
@clue clue requested a review from WyriHaximus August 23, 2022 14:11
@clue
Copy link
Contributor Author

clue commented Aug 31, 2022

Rebased on 0.5.x to fix unrelated HHVM build error addressed in #160 in the meantime. This is now ready for review :shipit:

@WyriHaximus WyriHaximus merged commit 03b74bd into friends-of-reactphp:0.5.x Sep 6, 2022
@clue clue deleted the parser-errors branch September 7, 2022 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants