[OpenSIPS-Devel] [OpenSIPS/opensips] 01b49f: Fix double increase of script version

Bogdan Andrei IANCU noreply at github.com
Tue May 16 20:29:46 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 01b49f14c2fac11484460629fe9d9adc44e4f2eb
      https://github.com/OpenSIPS/opensips/commit/01b49f14c2fac11484460629fe9d9adc44e4f2eb
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2023-05-16 (Tue, 16 May 2023)

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

  Log Message:
  -----------
  Fix double increase of script version

The process triggering the script reload was doing double version increase, once when testing the new script and second when actually reloading along the other procs.


  Commit: fce0eaeb241866d0c42db41160ed454be59fd7ed
      https://github.com/OpenSIPS/opensips/commit/fce0eaeb241866d0c42db41160ed454be59fd7ed
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2023-05-16 (Tue, 16 May 2023)

  Changed paths:
    M cfg_reload.c
    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.


Compare: https://github.com/OpenSIPS/opensips/compare/651908ffcc9c...fce0eaeb2418



More information about the Devel mailing list