Commit c95a8ca6 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

crashreport, increase sqlite busy timeout

(cherry picked from commit a8bcef6b)
(cherry picked from commit 3486cd2a)
parent 5dc97f70
......@@ -93,7 +93,7 @@ class Voucher implements IAuthConnector
{
$db_path = '/conf/vouchers_' . $this->refid . '.db';
$this->dbHandle = new \SQLite3($db_path);
$this->dbHandle->busyTimeout(2000);
$this->dbHandle->busyTimeout(30000);
$results = $this->dbHandle->query('select count(*) cnt from sqlite_master');
$row = $results->fetchArray();
if ($row['cnt'] == 0) {
......
......@@ -35,7 +35,7 @@ use OPNsense\Auth\AuthenticationFactory;
// open database
$database_filename = '/var/captiveportal/captiveportal.sqlite';
$db = new SQLite3($database_filename);
$db->busyTimeout(20000);
$db->busyTimeout(30000);
// query all sessions with client restrictions
$result = $db->query('
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment