summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
authorplumbeo <plumbeo@users.noreply.github.com>2017-01-05 18:04:00 +0100
committerRenato Botelho <renato@netgate.com>2017-01-11 09:32:18 -0200
commit4c4cd8a766449a68d71e3080eb9fe159ea37ac38 (patch)
tree61d0d5e4ddd6ceda87427bb84a31ac91eb291d73 /src/etc/inc/pfsense-utils.inc
parent68ee58edd2ad8d0332c4cfbdcf8f676cf00479a9 (diff)
downloadpfsense-4c4cd8a766449a68d71e3080eb9fe159ea37ac38.zip
pfsense-4c4cd8a766449a68d71e3080eb9fe159ea37ac38.tar.gz
Captive portal: make captiveportal_disconnect_all() faster
captiveportal_disconnect_all() removes the users one at a time and in some cases, when many hundreds of users are connected, can take up to several dozens of seconds to complete. Instead of looping through all users, send all the accounting information, reset the user database and delete all the active rules and reinit them. Use locking to prevent new users from logging in until the function ends. (cherry picked from commit 47f967856ef25557d87430026e8b208a8852381f)
Diffstat (limited to 'src/etc/inc/pfsense-utils.inc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud