pre_ping

1 parent 789632ac
......@@ -211,7 +211,7 @@ class PaymentWEBR(PCBase, CommonModel):
def get_connection(settings):
url = 'pcpd.url' in settings and settings['pcpd.url'] and 'pcpd.' or 'sqlalchemy.'
engine = engine_from_config(settings, url)
engine = engine_from_config(settings, url, pool_pre_ping=True)
PCDBSession.configure(bind=engine)
PCBase.metadata.bind = engine
return engine
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!