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

fixed reading connection attributes on server side #676

Merged
merged 7 commits into from
Feb 16, 2022

Conversation

skoef
Copy link
Contributor

@skoef skoef commented Feb 10, 2022

Connection attributes were not correctly parse during handshake. This was due to a bug in readPluginName (position wasn't shifted far enough) and a wrong assumption made in parsing attributes. This PR solves it.

I added some additional tests, so prevent regressions in the future. This involved adding a mock of Handler, which I think can be useful to replace testHandler as well.

@skoef skoef changed the title Server attributes fixed reading connection attributes on server side Feb 11, 2022
Copy link
Collaborator

@lance6716 lance6716 left a comment

Choose a reason for hiding this comment

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

Thanks!

@lance6716 lance6716 merged commit 8ecd6c6 into go-mysql-org:master Feb 16, 2022
@skoef skoef deleted the serverAttributes branch February 16, 2022 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants