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

Fix handling connection errors #45

Merged
merged 1 commit into from
Feb 13, 2017
Merged

Fix handling connection errors #45

merged 1 commit into from
Feb 13, 2017

Conversation

clue
Copy link
Member

@clue clue commented Feb 12, 2017

Currently, a connection error will throw an uncaught exception that will bubble up to the upper-most exception handler.

This PR changes it to simply reject the promise as excepted.

Note that this does not address #19, i.e. the connection is still blocking.
I'll file a new PR for this (unrelated issue) soon.

Fixes / closes #16
Fixes / closes #13
Supersedes / closes #22

Copy link
Member

@WyriHaximus WyriHaximus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking forward to using the datagram and socket-client, not very keep on making this blocking

@clue clue merged commit 079e05c into reactphp:master Feb 13, 2017
@clue clue deleted the fail branch February 13, 2017 09:40
@clue clue mentioned this pull request Mar 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants