Skip to content

Initial support for Connection Attributes#4370

Merged
sougou merged 3 commits intovitessio:masterfrom
dveeden:connattrs
Nov 18, 2018
Merged

Initial support for Connection Attributes#4370
sougou merged 3 commits intovitessio:masterfrom
dveeden:connattrs

Conversation

@dveeden
Copy link
Copy Markdown
Contributor

@dveeden dveeden commented Nov 16, 2018

This sets the flag to allow the client to send connection attributes.
And then connection attributes are decoded.

Issue: #4369

By setting CapabilityClientConnAttr in the ServerGreeting the client
starts to send key/value pairs in the login packet.
The keys vary per client but often include client pid, client version
client program, driver version, user on the client

Signed-off-by: Daniël van Eeden <git@myname.nl>
Signed-off-by: Daniël van Eeden <git@myname.nl>
@dveeden dveeden requested a review from sougou as a code owner November 16, 2018 14:20
Copy link
Copy Markdown
Contributor

@sougou sougou left a comment

Choose a reason for hiding this comment

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

Looks good. Can you write a test that demonstrates how this works? Either in server_test.go or handshake_test.go.

authMethod = MysqlNativePassword
}

// FIXME(alainjobart) Add CLIENT_CONNECT_ATTRS parsing if we need it.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Signed-off-by: Daniël van Eeden <git@myname.nl>
@sougou sougou merged commit 1806242 into vitessio:master Nov 18, 2018
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