Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
database/sql: closing connection due to driver.ErrBadConn hangs (locked) #29765
What version of Go are you using (
Not really. The MySQL issue sounds like the MySQL server didn't like that sequence of commands or something and killed the connection. Unsure. It depends on how certain aspects are handled.
The deadlock on the gomock sounds like a completly different issue where it makes a different assumption that is potentially invalid. They both could be bugs. But I have no reason to believe this is a bug with database/sql. The differences in errors actually point to the issue being with the driver.
Feel free to look into the implementations and show me where I'm incorrect.