MySQL Forums
Forum List  »  Connector/Arduino

Re: I use MySQL connectorl and after some time it stops. PLEASE HELP
Posted by: Daniel Wee
Date: February 12, 2017 05:11AM

Just some updates about the changes - I've altered read_packet to catch infinite loops and timeout with a error flag. This involved changing it from a void to an int function and returning the error state.

Then I also had to change the connect function which calls read_packet to catch those errors. In the original code, it had no way to catch any errors and that would result in some strange behaviours. Now it is a bit more consistent in handling errors from read_packet, even those not resulting from my timeout code.

I've been running the setup for many hours now and cannot seem to get it to crash. I'll run it longer just to be sure but I've not seen it run this long without problems so if someone is having problems with the code - this might be the way to go.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: I use MySQL connectorl and after some time it stops. PLEASE HELP
112
February 12, 2017 05:11AM


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.