[entropy.db] EntropyRepository: reduce lock acquisition timeout to 10 seconds

This commit is contained in:
Fabio Erculiani
2011-03-05 11:47:07 +01:00
parent 4b689cc619
commit 668f64a4ee
+1 -1
View File
@@ -655,7 +655,7 @@ class EntropyRepository(EntropyRepositoryBase):
if conn is None:
# check_same_thread still required for conn.close() called from
# arbitrary thread
conn = dbapi2.connect(self._db_path, timeout=300.0,
conn = dbapi2.connect(self._db_path, timeout=10.0,
check_same_thread = False)
self.__connection_cache[c_key] = conn
return conn