I have a php script which is a websocket server. It has a main loop that runs forever, and theres where my problem comes -- I'm using phalcon models and database interface in it, so after ~12h of running i get the 'Mysql Has Gone Away' because the connection was alive for too long. What would be the efficient solution to overcome this issue, can i simply close and open a new connection each time a function executes in the websock server or is that a bad approach?