summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2017-08-25 10:55:29 -0500
committerdrebs <drebs@riseup.net>2017-08-25 11:11:13 -0500
commitf49d6a22304faec964f38df0c997ea486be30087 (patch)
tree54884241ee1123e2d4be3ebe3e8b4daa5bf54dfc /src
parent992f213397ba0801d06367922d7f0097656f1bd0 (diff)
[bug] increase number of connections in local blobs db pool
If the number of threads on the connection pool is small and the local blobs db is stressed, different concurrent access problems may arise.
Diffstat (limited to 'src')
-rw-r--r--src/leap/soledad/client/_db/blobs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/soledad/client/_db/blobs.py b/src/leap/soledad/client/_db/blobs.py
index 4a3cd913..d6f2be2d 100644
--- a/src/leap/soledad/client/_db/blobs.py
+++ b/src/leap/soledad/client/_db/blobs.py
@@ -424,7 +424,7 @@ class SQLiteBlobBackend(object):
self.dbpool = ConnectionPool(
backend, self.path, check_same_thread=False, timeout=5,
- cp_openfun=openfun, cp_min=1, cp_max=2, cp_name='blob_pool')
+ cp_openfun=openfun, cp_min=1, cp_max=10, cp_name='blob_pool')
def close(self):
from twisted._threads import AlreadyQuit