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

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


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: d7a4bf8f134d3d2cd761f528e6963445c9ef9b06
      https://github.com/OpenSIPS/opensips/commit/d7a4bf8f134d3d2cd761f528e6963445c9ef9b06
  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.





More information about the Devel mailing list