X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-database.git/blobdiff_plain/d120007286dc6ad3b08afbfdadc5faa23108098a..a0b0348e89fc20f5810c5744758a88a7928fef4c:/python/database/__init__.py?ds=inline

diff --git a/python/database/__init__.py b/python/database/__init__.py
index 258c4d4..b3dd61c 100644
--- a/python/database/__init__.py
+++ b/python/database/__init__.py
@@ -4,6 +4,6 @@ import sqlalchemy
 
 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)