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.
Subject
Views
Written By
Posted
How do I get the session state (and then reconnect)?
877
June 20, 2021 08:36AM
482
June 21, 2021 08:57AM
526
June 21, 2021 12:01PM
629
June 22, 2021 03:02AM
406
June 22, 2021 02:05PM
Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
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.