From 00f7415b4b949cacedc84f1721c21883447f12bd Mon Sep 17 00:00:00 2001 From: Gabriel Ferreira Date: Tue, 10 Jun 2025 19:48:14 +0200 Subject: [PATCH] stats: (fixes #295) Add 100 ms timeout for sqlite3 operations --- src/stats/model/sqlite-output.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stats/model/sqlite-output.cc b/src/stats/model/sqlite-output.cc index 2a3ac781e..62e906bdf 100644 --- a/src/stats/model/sqlite-output.cc +++ b/src/stats/model/sqlite-output.cc @@ -22,6 +22,7 @@ SQLiteOutput::SQLiteOutput(const std::string& name) { int rc = sqlite3_open(name.c_str(), &m_db); NS_ABORT_MSG_UNLESS(rc == SQLITE_OK, "Failed to open DB"); + sqlite3_busy_timeout(m_db, 100); // set 100 ms timeout for sqlite3 operations } SQLiteOutput::~SQLiteOutput()