[OpenSIPS-Devel] [OpenSIPS/opensips] 47b5dc: fix dangling db conns bug

ionutrazvanionita ionutionita at opensips.org
Tue Nov 24 15:12:41 CET 2015


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 47b5dc900efd29f14397807e1947c99540159e26
      https://github.com/OpenSIPS/opensips/commit/47b5dc900efd29f14397807e1947c99540159e26
  Author: ionutrazvanionita <ionutionita at opensips.org>
  Date:   2015-11-24 (Tue, 24 Nov 2015)

  Changed paths:
    M modules/pi_http/http_db_handler.c
    M modules/pi_http/http_fnc.c
    M modules/pi_http/http_fnc.h
    M modules/pi_http/pi_http.c

  Log Message:
  -----------
  fix dangling db conns bug

* database are now started in child_init
* avoid opening db conns in mod_init and leaving them in the db pool because
when fork() shall be done all the processes will use the same db
structure therefore the same tcp connection




More information about the Devel mailing list