Skip to content

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

Merged
WyriHaximus merged 1 commit into
friends-of-reactphp:0.7.xfrom
clue-labs:quit-quitting
Nov 30, 2023
Merged

Consistently emit close event after quit even if server rejects#189
WyriHaximus merged 1 commit into
friends-of-reactphp:0.7.xfrom
clue-labs:quit-quitting

Conversation

@clue

@clue clue commented Nov 27, 2023

Copy link
Copy Markdown
Contributor

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

@SimonFrings SimonFrings left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread README.md Outdated
Comment thread src/MysqlClient.php Outdated

@SimonFrings SimonFrings left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice 👍

@clue

clue commented Nov 30, 2023

Copy link
Copy Markdown
Contributor Author

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

@WyriHaximus WyriHaximus left a comment

Copy link
Copy Markdown
Member

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