increase SQLite connection timeouts (#1173)
This commit is contained in:
parent
465015f75a
commit
511d8d3fa3
@ -210,6 +210,6 @@ try:
|
||||
os.close(os.open(dbfile, os.O_CREAT | os.O_RDONLY, 0o600))
|
||||
|
||||
DatabaseCacheDecorator.db = sqlite3.connect(
|
||||
dbfile, timeout=30, check_same_thread=False)
|
||||
dbfile, timeout=60, check_same_thread=False)
|
||||
except (OSError, TypeError, sqlite3.OperationalError):
|
||||
cache = memcache # noqa: F811
|
||||
|
@ -956,7 +956,7 @@ class PathFormat():
|
||||
class DownloadArchive():
|
||||
|
||||
def __init__(self, path, extractor):
|
||||
con = sqlite3.connect(path)
|
||||
con = sqlite3.connect(path, timeout=60, check_same_thread=False)
|
||||
con.isolation_level = None
|
||||
self.close = con.close
|
||||
self.cursor = con.cursor()
|
||||
|
Loading…
x
Reference in New Issue
Block a user