Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
a8bcef6b
Commit
a8bcef6b
authored
Nov 10, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crashreport, increase sqlite busy timeout
parent
0a88cca3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Voucher.php
src/opnsense/mvc/app/library/OPNsense/Auth/Voucher.php
+1
-1
process_accounting_messages.php
...ts/OPNsense/CaptivePortal/process_accounting_messages.php
+1
-1
No files found.
src/opnsense/mvc/app/library/OPNsense/Auth/Voucher.php
View file @
a8bcef6b
...
@@ -93,7 +93,7 @@ class Voucher implements IAuthConnector
...
@@ -93,7 +93,7 @@ class Voucher implements IAuthConnector
{
{
$db_path
=
'/conf/vouchers_'
.
$this
->
refid
.
'.db'
;
$db_path
=
'/conf/vouchers_'
.
$this
->
refid
.
'.db'
;
$this
->
dbHandle
=
new
\SQLite3
(
$db_path
);
$this
->
dbHandle
=
new
\SQLite3
(
$db_path
);
$this
->
dbHandle
->
busyTimeout
(
2
000
);
$this
->
dbHandle
->
busyTimeout
(
120
000
);
$results
=
$this
->
dbHandle
->
query
(
'select count(*) cnt from sqlite_master'
);
$results
=
$this
->
dbHandle
->
query
(
'select count(*) cnt from sqlite_master'
);
$row
=
$results
->
fetchArray
();
$row
=
$results
->
fetchArray
();
if
(
$row
[
'cnt'
]
==
0
)
{
if
(
$row
[
'cnt'
]
==
0
)
{
...
...
src/opnsense/scripts/OPNsense/CaptivePortal/process_accounting_messages.php
View file @
a8bcef6b
...
@@ -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
(
20000
);
$db
->
busyTimeout
(
1
20000
);
// query all sessions with client restrictions
// query all sessions with client restrictions
$result
=
$db
->
query
(
'
$result
=
$db
->
query
(
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment