golistic / pxmysql

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

fix: handling too large packets #31

Closed geertjanvdk closed 1 year ago

geertjanvdk commented 1 year ago

The MySQL X Plugin does not report whether a packet is too big. It instead simply closes the connection and the client cannot figure out what the problem was.

We fix this by getting the mysqlx_max_allowed_packet value and check the message size before writing it to the server.

Fixes #28