Closed handlerug closed 4 years ago
Hm, strange, I tried to login again (from the homepage) and it worked without any errors :thinking: Should I close the issue?
Sike, I visited My Settings and it crashed again. :man_shrugging:
Well, I do use autoReconnect=true
...
Yeah, I already checked DatabaseConnectionManager.java source code and it's there, but my public instance still has this error popping up randomly. By the way, I can send you its address, if you want (though I doubt that this is my error).
I had this issue too, but it fixed itself after I added that parameter. I'm out of ideas at this point.
I might try keeping track of when each connection was last used and open a new one if the old one might be stale, but that's more of a last resort kind of thing
I think this comment will be useful for you: https://stackoverflow.com/questions/2077081/connection-with-mysql-is-being-aborted-automatically-how-to-configure-connector#comment28415150_2077182
Also, this comment properly explains current behaviour (it reconnects only after throwing an error).
Looks like it was fixed with https://github.com/grishka/Smithereen/commit/090bcd335695eaf4f4187ae35682ed004c29f8d4 — I've just tested it and MySQL driver doesn't throw an error anymore.
Thanks for fixing!