I'm using red5 1.0.0rc1 to create an online game.
I'm connecting to a MySQL database using a jdbc mysql connector v5.1.12
it seems that after several hours of idle my application can continue running queries because the connection to the db got closed and i have to restart the application.
how can I resolve the issue ?
Kfir
解决方案
The MySQL JDBC driver has an autoreconnect feature that can be helpful on occasion; see Driver/Datasource Class Names, URL Syntax and Configuration Properties for Connector/J, and read the caveats.
In my experience the best solution is to change the MySQL configuration properties to set the session idle timeout to a really large number.