summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7f28be2)
svn path=/trunk/packages/sipb-xen-database/; revision=1041
+sipb-xen-database (10.28) unstable; urgency=low
+
+ * Re-establish the database connection if the server goes AWOL
+
+ -- Evan Broder <broder@mit.edu> Sat, 04 Oct 2008 23:19:59 -0400
+
sipb-xen-database (10.27) unstable; urgency=low
* Update sipb-database to work with newer SQLAlchemy and Xen
sipb-xen-database (10.27) unstable; urgency=low
* Update sipb-database to work with newer SQLAlchemy and Xen
def connect(uri = config.db.uri):
""" Connect to a given database URI"""
def connect(uri = config.db.uri):
""" Connect to a given database URI"""
- engine = sqlalchemy.create_engine(uri)
+ engine = sqlalchemy.create_engine(uri, pool_timeout=5)
meta.bind = engine
session.configure(bind=engine)
meta.bind = engine
session.configure(bind=engine)