Pool reconnection issue
- Dominant language
- C++
- Stars
- 299
- Forks
- 43
- PR merge metrics
- No merged PRs in 30d
Description
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 ?
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the sequence described with MySQL stopped, restarted, and queried through pool_.async_get_connection with a five-second cancellation timeout. Start by tracing the connection_pool acquisition and cancellation behavior around the shown call, then compare each reported error with the pool's documented lifecycle. Done means the behavior is explained and the issue has a clear handling or documentation outcome.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, mysql
- Domain
- databases, networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100