]> 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:27:00 +0000 (11:27 -0500)
commit3e01be46009ff820bb586081119548e81c21f8ce
tree8de9fae20ba1ca32fb27eacafa2857a83169ab46
parent22b46f2a151bc17eccc460649a6c70c551cd4513
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