acl-plugin: fix the high cpu usage caused by the connection cleaner 59/13059/3
authorAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 14 Jun 2018 16:36:41 +0000 (18:36 +0200)
committerDamjan Marion <dmarion@me.com>
Sun, 17 Jun 2018 12:07:11 +0000 (12:07 +0000)
commita0dfa8b158e327303fccc1f93bf05e948c93e93c
tree812528da3b0d50b662fa987b6db4f4a89479d81f
parente0b6c8a96d6d3fce583d0ef4b851a50a74afba5d
acl-plugin: fix the high cpu usage caused by the connection cleaner

The commit 4bc1796b346efd10f3fb19b176ff089179263a24 had incorrect
calculation of the session lists minimal timeout, resulting
in returned value of 0 which resulted in existing sessions
constantly requeued, taking up the CPU. Fix this calculation.

Change-Id: I9a789739f96a1f01522c68f91b0a02db2417837f
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/plugins/acl/sess_mgmt_node.c