Skip to content

Send COM_RESET_CONNECTION in mysqlnd_conn_data::restart_psession #20225

@TimWolla

Description

@TimWolla

Description

Inspired by the mailing list thread at https://externals.io/message/128741.

To make the use of persistent connections with MySQL somewhat safer, MySQLnd should send a connection reset when “restarting” a persistent session.

According to https://dev.mysql.com/doc/c-api/8.4/en/mysql-reset-connection.html, MySQL should then take care of cleaning up all connection-specific state.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions