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

Consistently emit close event after quit even if server rejects #189

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

clue
Copy link
Contributor

@clue clue commented Nov 27, 2023

This changeset ensures we consistently emit a close event after a quit() call even if the server rejects. This is more of an edge case I've encountered while working on support for multiple connections as discussed in #175, so I figured it makes sense to properly close the connection in case the server does not already do this as usually expected.

Follow-up PRs will build on top of this to use dedicated open and close events as discussed in #147 and support multiple connections as discussed in #175.

Builds on top of #187

@clue clue added this to the v0.7.0 milestone Nov 27, 2023
Copy link
Contributor

@SimonFrings SimonFrings left a comment

Choose a reason for hiding this comment

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

PR looks good, only found a small oversight inside the documentation for the quit() function

README.md Outdated Show resolved Hide resolved
src/MysqlClient.php Outdated Show resolved Hide resolved
Copy link
Contributor

@SimonFrings SimonFrings left a comment

Choose a reason for hiding this comment

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

Nice 👍

@clue
Copy link
Contributor Author

clue commented Nov 30, 2023

Rebased to fix merge conflict now that #188 is in :shipit:

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.

👍

@WyriHaximus WyriHaximus merged commit bc5ecf3 into friends-of-reactphp:0.7.x Nov 30, 2023
13 checks passed
@clue clue deleted the quit-quitting branch November 30, 2023 11:32
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