- MySQL connection inactivity: after certain amount of seconds of connection inactivity (defined by your database server), the connection is automatically closed by the database server. This is now fixed by getting the timeout and repeating task which sends queries to keep the connection alive (repeating delay is set by the obtained session timeout).