Skip to content

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

Development

Successfully merging this pull request may close these issues.

Fatal on call $conn->close() if connection was not created. Resolving raises an error in the Stream component

3 participants