[sr-dev] [kamailio/kamailio] htable race condition on expired keys (#1152)

Daniel-Constantin Mierla notifications at github.com
Mon Jun 19 16:23:18 CEST 2017


Do you have an event_route for expired htable items in your configuration file?

I do not see at a very quick check how the removed code is causing an issue, unless there are executions with mode==0 of ht_cell_value_add(), so the lock is not acquired. As a matter of fact, that mode stuff should be removed, because the htable locks are re-entrant now.

The check for expired items needs to be done at that moment, otherwise one can increment/decrement an expired item, because the auto-expire routine is done on a timer based, on an interval basis.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1152#issuecomment-309455174
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20170619/cc4092c4/attachment.html>


More information about the sr-dev mailing list