MySQL Forums
Forum List  »  Connector/C++

How do I get the session state (and then reconnect)?
Posted by: Wh Ooo
Date: June 20, 2021 08:36AM

Hello. How can I get the mysqlx::Session state using XDevApi for C++? Let's say the MySQL server has dropped the connection, how can I check it?

My client can work for several weeks without shutting down and sending queries. A few hours after starting and sending the query, I get an exception. As far as I understand, this is due to the "wait_timeout" property, which disconnect the session from the server. Actually, how do I check that there was a disconnection and then reconnect?

I didn't find any method in mysqlx::Session that could help me.

Options: ReplyQuote


Subject
Views
Written By
Posted
How do I get the session state (and then reconnect)?
677
June 20, 2021 08:36AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.