Connection close by mysql/mariadb
Connection close by mysql/mariadb

After sleep time mysql close the connection but sqlalchemy still have connection open.

That cause exception raise at line 234

pool_pre_ping=True test if the connection need to be restart. https://docs.sqlalchemy.org/en/14/core/pooling.html
Yubico/python-pyhsm