[OpenSIPS-Devel] [OpenSIPS/opensips] 686af1: Fix the TCP forking sequence.

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Sep 19 18:14:28 CEST 2016


  Branch: refs/heads/2.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 686af14abad38138e9001e0f47b9e76ed9247d8b
      https://github.com/OpenSIPS/opensips/commit/686af14abad38138e9001e0f47b9e76ed9247d8b
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2016-09-19 (Mon, 19 Sep 2016)

  Changed paths:
    M main.c
    M net/net_tcp.c
    M net/net_tcp.h

  Log Message:
  -----------
  Fix the TCP forking sequence.

Keep the TCP-main the last forked process, to be sure it inherits all the communication sockets from all other OpenSIPS processes.
Credits go to Razvan for reporting.
Alternative fix for 9fd451fd684ed3c9133bcc0e896de8d28ad45208

(cherry picked from commit c2e2a0f141d11a972705f1555d0e2a23ec3f01ed)
(cherry picked from commit 3767f332caa341b55bc135d719c70e388a4ac865)


  Commit: 3283f1c47f93b48611d08f95270dda1667c6bdfa
      https://github.com/OpenSIPS/opensips/commit/3283f1c47f93b48611d08f95270dda1667c6bdfa
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2016-09-19 (Mon, 19 Sep 2016)

  Changed paths:
    M net/net_tcp.c

  Log Message:
  -----------
  Fix starting TCP processes.

Do not start TCP main if tcp is disabled - this was introduced with the previous commit, when we split the starting of TCP workers and TCP main (see c2e2a0f141d11a972705f1555d0e2a23ec3f01ed).

(cherry picked from commit 542a9c98844bffec96d7cc790c37ef842b43ee66)
(cherry picked from commit e77626e45dd58c435c11a5067ac6feb913d0057e)


  Commit: a5fe37575751fa9a7f7effecbdb82ec9f17fe4ca
      https://github.com/OpenSIPS/opensips/commit/a5fe37575751fa9a7f7effecbdb82ec9f17fe4ca
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2016-09-19 (Mon, 19 Sep 2016)

  Changed paths:
    M timer.c

  Log Message:
  -----------
  Fix async resume in the timer dedicated timer.

The timer dedicated timer may end up running script routes (like failure route), so it may trigger some async operations. So, the dedicated timer process must be async enabled.

(cherry picked from commit 91e87f18d48b9e66cd052e825ae1f2f3c061955f)
(cherry picked from commit 73710a7c00303407518392f70e0aa6806bf664c1)


  Commit: 43793df4303f19667a5e80d0ce4a7486377e8256
      https://github.com/OpenSIPS/opensips/commit/43793df4303f19667a5e80d0ce4a7486377e8256
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2016-09-19 (Mon, 19 Sep 2016)

  Changed paths:
    M timer.c

  Log Message:
  -----------
  Merge previous cherry-pick from trunk

(cherry picked from commit 8aebdcbe801bbb4514c2a39a80a644ba1ff085c1)


Compare: https://github.com/OpenSIPS/opensips/compare/a96e9a2ace0e...43793df4303f


More information about the Devel mailing list