Changeset 1041


Ignore:
Timestamp:
Oct 4, 2008, 11:23:10 PM (16 years ago)
Author:
broder
Message:

Re-establish the database connection if the server goes AWOL

Location:
trunk/packages/sipb-xen-database
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/packages/sipb-xen-database/debian/changelog

    r1016 r1041  
     1sipb-xen-database (10.28) unstable; urgency=low
     2
     3  * Re-establish the database connection if the server goes AWOL
     4
     5 -- Evan Broder <broder@mit.edu>  Sat, 04 Oct 2008 23:19:59 -0400
     6
    17sipb-xen-database (10.27) unstable; urgency=low
    28
  • TabularUnified trunk/packages/sipb-xen-database/python/database/__init__.py

    r991 r1041  
    55def connect(uri = config.db.uri):
    66    """ Connect to a given database URI"""
    7     engine = sqlalchemy.create_engine(uri)
     7    engine = sqlalchemy.create_engine(uri, pool_timeout=5)
    88    meta.bind = engine
    99    session.configure(bind=engine)
Note: See TracChangeset for help on using the changeset viewer.