> I will double check that part of the code, since I don't think a lock get is 
> necessary. It only updates a value inside a node, inside the list of nodes, 
> but not changes the list links at all. (this in another PR)

I think you're right. However, you would need a memory fence to safely access 
the values in shared memory without a lock. Also, without the lock, you might 
get multiple processes doing the health check at the same time, but that's not 
a big deal. If you want to be fancy, you could make it so that other processes 
skip the instance while some process is doing busy the health check, and only 
use it (or continue skipping it) after the health check is done.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3992#issuecomment-2426580443
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/pull/3992/c2426580...@github.com>
_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to