Jiggmin's Village
[PR2 Bug] DB connection timeout? - Printable Version

+- Jiggmin's Village (https://jiggmin2.com/forums)
+-- Forum: Mt. Olympus (https://jiggmin2.com/forums/forumdisplay.php?fid=11)
+--- Forum: Bugs and Suggestions (https://jiggmin2.com/forums/forumdisplay.php?fid=37)
+--- Thread: [PR2 Bug] DB connection timeout? (/showthread.php?tid=2565)



DB connection timeout? - bls1999 - 15th May 2020

-- Note to self. Technical things below. --

The database connection times out if it's kept open for too long with no activity (I believe), which causes the server to crash. An example of this is PR2 Staff crashing as soon as I log out after no one has logged in for a while.

The connection is set to renew daily, but I'm wondering if it should be done more often? Maybe hourly? That would be a nice start to debugging this really obscure anomaly. The other option is to create a function to perform DB calls, and if a call fails then attempt to reconnect before crashing the entire server. That's probably the better option.


RE: DB connection timeout? - bls1999 - 25th June 2020

this is fixed