]> git.ipfire.org Git - thirdparty/asterisk.git/commit
manager: be more aggressive about purging http sessions.
authorJaco Kroon <jaco@uls.co.za>
Mon, 5 Sep 2022 06:59:30 +0000 (08:59 +0200)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Thu, 22 Sep 2022 16:26:59 +0000 (11:26 -0500)
commitef20afda63ced6080b9b3d1b7cfafd5ff4f7169a
tree688edf38be238062413918363dfe982a4f57cd33
parent086b1abf66b3d90f424e7301e4aaf15be2171832
manager: be more aggressive about purging http sessions.

If we find that n_max (currently hard wired to 1) sessions were purged,
schedule the next purge for 1ms into the future rather than 5000ms (as
per current).  This way we will purge up to 1000 sessions per second
rather than 1 every 5 seconds.

This mitigates a build-up of sessions should http sessions gets
established faster than 1 per 5 seconds.

Change-Id: I9820d39aa080109df44fe98c1325cafae48d54f5
Signed-off-by: Jaco Kroon <jaco@uls.co.za>
main/manager.c