Skip to content

Need a callback upon reconnects #185

Open
@Abscissa

Description

@Abscissa

As discussed in #176:

Currently, the MySQLPool's onNewConnection callback does not fire when an existing connection has been closed and re-connects. Given the callback's name is "onNewConnection", I think that is entirely appropriate.

However, there needs to also be a callback which gets triggered every time a connection reconnects. This is necessary to correctly handle many of MySQL's connection-specific configuration settings.

Unlike the existing onNewConnection, this onReconnect callback needs to be a member of Connection (although there should also be corresponding onReconnect in MySQLPool).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions