]> 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:57 +0000 (11:26 -0500)
commit2043234cf4d896f2fa887a1cdcb4db38fc78b13c
tree876b0b1d5b2fb7556dbf9da2c13c3e41b349bda7
parentc6ca266acdb337600064013bf3a0a381e75525ab
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