Commit 7c63499b authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

captive portal, increase timeout, sometimes 2 seconds may not be enough.

fix for:
PHP Warning:  SQLite3Stmt::execute(): Unable to execute statement: database is locked in /usr/local/opnsense/scripts/OPNsense/CaptivePortal/process_accounting_messages.php on line 68

(cherry picked from commit 3f4d694f)
parent a62dc259
...@@ -35,7 +35,7 @@ use OPNsense\Auth\AuthenticationFactory; ...@@ -35,7 +35,7 @@ use OPNsense\Auth\AuthenticationFactory;
// open database // open database
$database_filename = '/var/captiveportal/captiveportal.sqlite'; $database_filename = '/var/captiveportal/captiveportal.sqlite';
$db = new SQLite3($database_filename); $db = new SQLite3($database_filename);
$db->busyTimeout(2000); $db->busyTimeout(20000);
// query all sessions with client restrictions // query all sessions with client restrictions
$result = $db->query(' $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