Closed JetForMe closed 1 year ago
The packet that was unhandled is an ERR_Packet
; the error message is The client was disconnected by the server because of inactivity. See wait_timeout and interactive_timeout for configuring this behavior.
.
This crash is a known bug in the packet handling logic, and has been addressed in the upcoming major revamp of MySQLNIO, as have all the other fatal errors, assertion failures, and other unnecessary crashes on failure.
Woo hoo!
Describe the bug
I've been working on a Vapor REST API project. I'm running locally on my Mac at home, and hitting a MySQL DB hosted at DigitalOcean. I came back to work on it after leaving it the night before to find the Vapor app stopped in Xcode at this assertion:
I don't think there was an explicit query in progress, as it was just idling locally. The stack:
The queue has 16
nil
entries:To Reproduce
I didn't try to reproduce it.
Expected behavior
Ideally an error like this wouldn't crash the process. Maybe roll back the current transaction and throw an error?
Environment
Ventura 13.1 (22C65) mysql-nio v1.4.0 mysql-kit v4.6.1 MySQL server v8.0.28, protocol version 10
Additional context
Add any other context about the problem here.