golistic / pxmysql

Go MySQL driver using X Protocol
MIT License
14 stars 0 forks source link

Report useful error when server does not allow any new connections anymore #29

Open geertjanvdk opened 1 year ago

geertjanvdk commented 1 year ago

MySQL X Plugin currently does not report when a user fails to connect due to too many connections. The Classic Protocol returns server error 1040 when this happens.

Since X Plugin simply cuts the connection with an EOF, we can only report a bad connection, but this is var from ideal or useful to users.

geertjanvdk commented 1 year ago

Depends on MySQL bug https://bugs.mysql.com/bug.php?id=111172 to be fixed.