MySQL Forums
Forum List  »  Connector/C (libmysql)

Re: How to distinguish the response of Lost connection to MySQL server?
Posted by: Peter Brawley
Date: May 07, 2021 09:13AM

Track action times, then when now() - last connection activity time > connection timeout, reconnect.

Options: ReplyQuote

Sorry, only registered users may post in this forum.

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.