Bluefissure / OtterBot

A QQ bot of FFXIV
https://xn--v9x.net
GNU General Public License v3.0
522 stars 129 forks source link

Fix “MySQL server has gone away” issue #157

Closed sandtechnology closed 2 years ago

sandtechnology commented 2 years ago

It caused by not checking connection when using, so check it when every model created for every 30s

Bluefissure commented 2 years ago

Why is this closed?

sandtechnology commented 2 years ago

Why is this closed?

Because it look like more likely needs a watcher to check connection every 30 mins instead of check that when something happened, this error is caused by the "wait timeout" in mysql server, so just making connection actively will solve this issue.