From ca2e792d1d45806270f6ddbed178b6f14db2456d Mon Sep 17 00:00:00 2001 From: Tom Early Date: Tue, 18 Aug 2020 12:15:13 -0700 Subject: [PATCH] db busy timeout --- QnetDB.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/QnetDB.cpp b/QnetDB.cpp index c1525a6..f55607d 100644 --- a/QnetDB.cpp +++ b/QnetDB.cpp @@ -28,6 +28,11 @@ bool CQnetDB::Open(const char *name) fprintf(stderr, "CQnetDB::Open: can't open %s\n", name); return true; } + auto rval = sqlite3_busy_timeout(db, 1000); + if (SQLITE_OK != rval) + { + fprintf(stderr, "sqlite3_busy_timeout returned %d\n", rval); + } return Init(); }