[sr-dev] [kamailio/kamailio] permissions: implement lock for trusted hash (PR #2910)
notifications at github.com
Fri Nov 5 11:39:48 CET 2021
> I guess there is no possibility to perform another reload as long as the old hash table is not freed on timer. If yes, then fine for me
[here](https://github.com/kamailio/kamailio/pull/2910/commits/7ce815c2612d6277b55aabf6519c70a4ecec6502#diff-ce4f68a3bf731efbaaa1d243de3f81a8c6a068fb2c8693195558dbda1b4bb389R228-R230) I check that no reload was done before last tick.
if a reload is called before the timer interval, nothing changed. [reload_trusted_table](https://github.com/kamailio/kamailio/blob/7ce815c2612d6277b55aabf6519c70a4ecec6502/src/modules/permissions/trusted.c#L94-L100) It was already removing the old previous values before loading new values there before the switch.
> the new modparm has to be documented, if not done.
To be added if we agree in the implementation
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sr-dev