[OpenSIPS-Devel] [OpenSIPS/opensips] 3a8f6f: The main process (attendant) is no longer running...

Bogdan Andrei IANCU noreply at github.com
Mon Jun 22 16:01:10 EST 2020


  Branch: refs/heads/3.0
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 3a8f6f1375dc3e3dc8a4a786ee642d4a5fe61069
      https://github.com/OpenSIPS/opensips/commit/3a8f6f1375dc3e3dc8a4a786ee642d4a5fe61069
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2020-06-22 (Mon, 22 Jun 2020)

  Changed paths:
    M main.c
    M modules/alias_db/alias_db.c
    M modules/auth_db/authdb_mod.c
    M modules/avpops/avpops.c
    M modules/b2b_entities/b2b_entities.c
    M modules/b2b_logic/b2b_logic.c
    M modules/b2b_sca/b2b_sca.c
    M modules/cachedb_couchbase/cachedb_couchbase.c
    M modules/cachedb_memcached/cachedb_memcached.c
    M modules/cachedb_mongodb/cachedb_mongodb.c
    M modules/cachedb_redis/cachedb_redis.c
    M modules/call_center/call_center.c
    M modules/cgrates/cgrates.c
    M modules/clusterer/clusterer_mod.c
    M modules/dialog/dialog.c
    M modules/dispatcher/dispatcher.c
    M modules/dns_cache/dns_cache.c
    M modules/domain/domain_mod.c
    M modules/domainpolicy/domainpolicy_mod.c
    M modules/drouting/drouting.c
    M modules/emergency/emergency_methods.c
    M modules/freeswitch_scripting/fss_mod.c
    M modules/group/group_mod.c
    M modules/h350/h350_mod.c
    M modules/imc/imc.c
    M modules/jabber/jabber.c
    M modules/ldap/ldap_mod.c
    M modules/msilo/msilo.c
    M modules/pi_http/pi_http.c
    M modules/presence/presence.c
    M modules/presence_xml/presence_xml.c
    M modules/pua/pua.c
    M modules/ratelimit/ratelimit.c
    M modules/rls/rls.c
    M modules/rtpproxy/rtpproxy.c
    M modules/sipcapture/sipcapture.c
    M modules/sngtc/sngtc.c
    M modules/speeddial/speeddial.c
    M modules/sql_cacher/sql_cacher.c
    M modules/tracer/tracer.c
    M modules/userblacklist/userblacklist.c
    M modules/usrloc/ul_mod.c
    M modules/xcap/xcap_mod.c

  Log Message:
  -----------
   The main process (attendant) is no longer running the child_init()

The main proc must stay free of any db connections, so it can later fork and child_init() other procs (due auto_scaling).
For the modules which were keeping a DB conn open in main proc for later usage, during module destroy, the new approach is to open the conn, on the spot, in the destroy handler.

Related to #2003

(cherry-pick from 7b62f2453bd226ec08b4f229017fa953d3876681)





More information about the Devel mailing list