Skip to content

Conversation

@clue
Copy link
Contributor

@clue clue commented Nov 15, 2016

We now register a Promise cancellation handler so that the following code actually cleans up the underlying socket resource:

$promise = $connector->create('reactphp.org', 80);

$promise->cancel();

Closes #40

@clue clue added this to the v0.5.1 milestone Nov 15, 2016
@clue
Copy link
Contributor Author

clue commented Nov 15, 2016

Updated to fix errors on legacy PHP versions, now ready for review :shipit:

Copy link
Contributor

@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.

LGTM except the fact that tests for HHVM are failing

Copy link
Contributor

@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.

LGTM :shipit:

@clue clue merged commit 3bcd121 into reactphp-legacy:master Nov 19, 2016
@clue clue deleted the cancellation branch November 19, 2016 17:37
@clue clue mentioned this pull request Jan 11, 2017
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