[OpenSIPS-Devel] [OpenSIPS/opensips] 3cd634: Fix reload of timer routes

Bogdan Andrei IANCU noreply at github.com
Thu Jun 22 06:46:10 UTC 2023


  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 3cd6344f65c3f35be026386b8f83e7a3fb469447
      https://github.com/OpenSIPS/opensips/commit/3cd6344f65c3f35be026386b8f83e7a3fb469447
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2023-06-22 (Thu, 22 Jun 2023)

  Changed paths:
    M cfg_reload.c
    M route.c
    M route.h
    M timer.c

  Log Message:
  -----------
  Fix reload of timer routes

Use a separate, dynamic list of timer tasks that can be update by other proc than the timer itself (which has no info on the script).
The proc doing the reload, upon success, re-generates the list of timer tasks corresponding to the new set of timer routes.
NOTE: a more complex logic is needed when purging the old set of timer tasks, as they may still be under execution - we use here a pending list where we wait their completion.

(cherry picked from commit fce0eaeb241866d0c42db41160ed454be59fd7ed)
(cherry picked from commit 0950670879d586439448c4e62be7c065c724cde0)





More information about the Devel mailing list