[sr-dev] git:master:fb115679: keepalive: prevent race condition when deleting a destination

Nacho Garcia Segovia nacho.gs at zaleos.net
Tue Sep 22 17:53:03 CEST 2020


Module: kamailio
Branch: master
Commit: fb115679228b19944f886893b47743db44465072
URL: https://github.com/kamailio/kamailio/commit/fb115679228b19944f886893b47743db44465072

Author: Nacho Garcia Segovia <nacho.gs at zaleos.net>
Committer: Nacho Garcia Segovia <nacho.gs at zaleos.net>
Date: 2020-09-14T13:18:37+02:00

keepalive: prevent race condition when deleting a destination

- Added a lock to ka_dest type, so we get it when we run callbacks that may be associated to an OPTIONS response
- Same lock is used to not remove destinations that are running callbacks
- Now find destinations consider owner and uri

---

Modified: src/modules/keepalive/keepalive.h
Modified: src/modules/keepalive/keepalive_api.c
Modified: src/modules/keepalive/keepalive_core.c

---

Diff:  https://github.com/kamailio/kamailio/commit/fb115679228b19944f886893b47743db44465072.diff
Patch: https://github.com/kamailio/kamailio/commit/fb115679228b19944f886893b47743db44465072.patch




More information about the sr-dev mailing list