powerdns-admin/app
Thomas M Steenholdt daba67611b Enable pool_pre_ping in DB connection
To avoid problems with inactive DB connections, SQLAlchemy provides a `pool_pre_ping` option, that described in more detail here:

http://docs.sqlalchemy.org/en/latest/core/pooling.html#disconnect-handling-pessimistic

In flask environments, it's enabled by subclassing SQLAlchemy, which is what I've done here.

Fixes errors like:
sqlalchemy.exc.OperationalError: (_mysql_exceptions.OperationalError) (2006, 'MySQL server has gone away') which results in an Error 500 in the UI.
2018-06-12 14:01:25 -02:00
..
lib domain stripping was not limited to the end of a name 2018-04-12 12:01:59 +02:00
static Add ajax call for refresh 2018-06-08 13:26:06 +02:00
templates Merge remote-tracking branch 'tmuncks/initial-accounts' 2018-06-12 16:17:55 +07:00
__init__.py Enable pool_pre_ping in DB connection 2018-06-12 14:01:25 -02:00
decorators.py Validate user role and DNSSEC_ADMINS_ONLY config on DNSSEC related routes 2018-06-07 09:28:14 +07:00
models.py Merge remote-tracking branch 'tmuncks/initial-accounts' 2018-06-12 16:17:55 +07:00
views.py Merge remote-tracking branch 'tmuncks/initial-accounts' 2018-06-12 16:17:55 +07:00