[Serdev] CVS:commitlog: sip_router/modules/domain domain.c
Hendrik Scholz
hendrik.scholz at freenet-ag.de
Fri Jan 26 10:33:14 UTC 2007
Hi!
There is another issue inside the domain module.
Inside mod_init() the database connection is established but even if
everything is loaded successfully the connection is torn down before
regular operation.
As a result the RPC domain.reload will fail.
Two solutions:
1) remove disconnect_db() from mod_init()
2) call connect_db() whenever needed, i.e. in reload_domains() from RPC
I'm no friend of persistent but unused MySQL connections which
might introduce issues later down the road (closed remotely by MySQL
et al). I'd go for the connection re-establishments upon need and
teardown afterwards.
Any comments?
Cheers,
Hendrik
--
freenet Cityline GmbH, Hamburger Chaussee 2-4, 24114 Kiel, Germany
Phone: +49 (0)431 9020552, Fax: +49 (0)431 9020559
Internet: http://www.freenet.de, eMail: hendrik.scholz at freenet-ag.de
More information about the Serdev
mailing list