Skip to content

Pool reconnection issue #494

@gitSomething

Description

@gitSomething

Hi!
I have following behavior which i dont know how to handle:
the code is auto conn = co_await pool_.async_get_connection(boost::asio::cancel_after(std::chrono::seconds(5)));
Once i stop mysql server and try to run it it throws: "MySQL error: asio.misc:2 End of file"
I start mysql once again and try to connect, now it says "MySQL error: mysql.client:16 Getting a connection from a connection_pool was cancelled before a connection was available"
But mysql is running.
And only on third time it connects.

If it works as intended how should i handle it ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions