PyMySQLPool icon indicating copy to clipboard operation
PyMySQLPool copied to clipboard

allow to reconnect, i experience dissconnect error multiple times

Open bokunodev opened this issue 4 years ago • 0 comments

i experienced this alot pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query') and i think this change will fix it.

https://github.com/prprprus/PyMySQLPool/blob/212110afaaa01f1d0d3faa8fe099ad19f48a8fbe/pymysqlpool/pool.py#L184

change to c.ping(reconnect=True)

bokunodev avatar Nov 06 '21 01:11 bokunodev