mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
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
This commit is contained in:
parent
6d7c1cb7db
commit
3f4d694fe3
@ -35,7 +35,7 @@ use OPNsense\Auth\AuthenticationFactory;
|
||||
// open database
|
||||
$database_filename = '/var/captiveportal/captiveportal.sqlite';
|
||||
$db = new SQLite3($database_filename);
|
||||
$db->busyTimeout(2000);
|
||||
$db->busyTimeout(20000);
|
||||
|
||||
// query all sessions with client restrictions
|
||||
$result = $db->query('
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user