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

Bogdan Andrei IANCU noreply at github.com
Fri Sep 16 14:51:28 UTC 2022


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