Commit a8bcef6b authored by Ad Schellevis's avatar Ad Schellevis

crashreport, increase sqlite busy timeout

parent 0a88cca3
......@@ -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(120000);
$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(120000);
// 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