Bug #107695 want a connection status aip in connector c/c++

Submitted: 29 Jun 2022 4:22 Modified: 13 Jul 2022 11:25
Reporter: 芳彬 杨 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] 芳彬 杨
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] 芳彬 杨
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

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.052 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
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.