[OpenSIPS-Devel] [OpenSIPS/opensips] 54d8ff: [TCP] fix init TCP support for auto-scalled procs

Bogdan Andrei IANCU noreply at github.com
Fri Sep 16 14:50:49 UTC 2022


  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 54d8ff7c2342a5264be010511e8612f2a6de181e
      https://github.com/OpenSIPS/opensips/commit/54d8ff7c2342a5264be010511e8612f2a6de181e
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2022-09-16 (Fri, 16 Sep 2022)

  Changed paths:
    M net/net_tcp.c

  Log Message:
  -----------
  [TCP] fix init TCP support for auto-scalled procs

When starting the TCP Main proc, be sure we initialize the MAIN<>Worker communication sockets also for the procs to be potentially scaled in the future.
`pt[n].unix_sock` is valid only for running procs (not for the "autoscale to-be"), so use the `pt[n].tcp_socks_holder[0]` holder (valid for all procs, running or not).
Thanks go to Yury Kirsanov and Slava Bendersky for reporting and helping with the troubleshooting.

(cherry picked from commit d7a4bf8f134d3d2cd761f528e6963445c9ef9b06)





More information about the Devel mailing list