[OpenSIPS-Devel] [OpenSIPS/opensips] 12f37c: fix dangling db conns bug

ionutrazvanionita ionutionita at opensips.org
Fri Apr 1 01:07:46 CEST 2016


  Branch: refs/heads/1.11
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 12f37c048254137a5888951b58dc70c3301962e0
      https://github.com/OpenSIPS/opensips/commit/12f37c048254137a5888951b58dc70c3301962e0
  Author: ionutrazvanionita <ionutionita at opensips.org>
  Date:   2016-03-31 (Thu, 31 Mar 2016)

  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

(cherry picked from commit 47b5dc900efd29f14397807e1947c99540159e26)




More information about the Devel mailing list