JnCrMx / ChocoBot

Just a small Discord bot.
MIT License
1 stars 1 forks source link

Bot sometimes just stops working #21

Closed chocobot-bugreport[bot] closed 4 years ago

chocobot-bugreport[bot] commented 4 years ago

Looking at the exceptions thrown on termination (none are thrown when it stops working) this seems to be because some database connections don't return to the pool. This causes the code to hang when trying to get a connection.

We should definitly add a timeout for connections to get at least some exceptions in such cases. Also maybe re-enable the debug options of the connection pool to get more information about where the unclosed connections are held.