[Asterisk-code-review] manager: be more aggressive about purging http sessions. (asterisk[master])

Jaco Kroon asteriskteam at digium.com
Mon Aug 15 16:44:29 CDT 2022


Attention is currently required from: Jaco Kroon.
Hello Friendly Automation, 

I'd like you to reexamine a change. Please visit

    https://gerrit.asterisk.org/c/asterisk/+/18976

to look at the new patch set (#2).

Change subject: manager: be more aggressive about purging http sessions.
......................................................................

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: I4117ae25acc9c92bd1d3cfa73d7d334f5c3480c2
Signed-off-by: Jaco Kroon <jaco at uls.co.za>
---
M include/asterisk/tcptls.h
M main/manager.c
2 files changed, 12 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/76/18976/2
-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/18976
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I4117ae25acc9c92bd1d3cfa73d7d334f5c3480c2
Gerrit-Change-Number: 18976
Gerrit-PatchSet: 2
Gerrit-Owner: Jaco Kroon <jaco at uls.co.za>
Gerrit-Reviewer: Friendly Automation
Gerrit-Attention: Jaco Kroon <jaco at uls.co.za>
Gerrit-MessageType: newpatchset
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220815/55715608/attachment-0001.html>


More information about the asterisk-code-review mailing list