Skip to content

Add "reset session" method to connections #780

Open
@dougwilson

Description

@dougwilson

There should be an easy way to reset the session associated with a connection, like MySQL Connector has. Since MySQL 5.7.2 there is a new "reset connection" packet that will reset the connection state without making a new connection and authenticating (less overhead). Too bad 5.7.2 is way too new :)

MySQL Connector conveniently added a method to generically reset the session by using the new packet when available and falling back to the slower change user packet.

This feature is very useful, especially when interacting with transactions and a connection pool.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions