Bug #107695 want a connection status aip in connector c/c++
Submitted: 29 Jun 2022 4:22 Modified: 13 Jul 2022 11:25
Reporter: bingo yang Email Updates:
Status: Verified Impact on me:
None 
Category:Connector / C++ Severity:S4 (Feature request)
Version:8.0.29 OS:Any
Assigned to: CPU Architecture:Any

[29 Jun 2022 4:22] bingo yang
Description:
When I create a session. I want to know whether it is still connect to the server since the valid function won't return the correct information about connection status.

How to repeat:
just a feature suggest. not a bug
[4 Jul 2022 7:46] MySQL Verification Team
Hello bingo yang,

Thank you for the feature request.
Could you please be specific about "valid function"?
Also, it would be really good to know whether you are using classic or XDevAPI? Thank you

Regards,
Ashwini Patil
[13 Jul 2022 2:02] bingo yang
Hi Ashwini,

I'm using the XDevAPI.

First I create a session. Then the mysql server close the connection because of time out or the network disconnect for a while. Then I want a function to judge whether the session is connected still.I tyr to use  mysqlx_session_valid to judge it, but it can not indicates the communicating status.
[13 Jul 2022 11:25] MySQL Verification Team
Hello bingo yang,

Thank you for the reasonable feature request!

Regards,
Ashwini Patil