nsg/SyncNBT

Connection closed in restoreExtraNBTTags

Opened this issue · 2 comments

nsg commented

For some unknown reason, the connection to the database is sometimes closed when we tries to use.

You'll need to set a reconnect time... this is due to some servers not having players online or polling on the database to keep it alive. Using a popular open source SQL lib might be worth while here. (Hairikiri or BoneCP)

nsg commented

I have ?autoReconnect=true added to the connection string and I understand that will reconnect to the database if needed. I also check the connection each time I do a query and manually reconnect if needed.

I have had problems in 0.2, I'm not 100% sure why but I did a big re-factoring of the code in 0.3 and I haven’t seen this problem since then. Hopefully it is fixed, time will tell.