You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error is superficial [1], but I've become tired of people asking me "what does it mean?" :-) so I'm attaching a PR that fixes it by not sending COM_QUIT until successfully authenticated, else just close the network connection and do the usual internal cleanup (unset vars, etc.).
[1] Superficial to developers, but to users it raises questions because STDERR keeps us up at night.
If connecting to MySQL using a socket file and authentication fails, the driver prints an error like
to STDERR because the driver tries to send
COM_QUIT
on auth failure but MySQL has already closed the connection: https://dev.mysql.com/doc/internals/en/authentication-fails.htmlThe error is superficial [1], but I've become tired of people asking me "what does it mean?" :-) so I'm attaching a PR that fixes it by not sending
COM_QUIT
until successfully authenticated, else just close the network connection and do the usual internal cleanup (unset vars, etc.).[1] Superficial to developers, but to users it raises questions because STDERR keeps us up at night.
Reproduce like:
Output:
Using latest master @ d512f20. Iirc, this issue has always existed in the diver. Not affected by Go version.
The text was updated successfully, but these errors were encountered: