John Fawcett wrote: > one more potential issue that could affect more than lmtp, is that if > db_connect in dbmodule.c is called on an already open connection, no > free is done on the previuos connection. > Although I expect that db_connect is supposed to be called only once, I > did some tracing and it seems it can get called twice during program > startup. Not sure at the moment how it ends up being called more than > once. In any case it could be worthwhile to add a guard to db_connect.
It's called from the daemon process as a guardian check, and once in the forked child. The parent process keeps testing the viability of the connection so it can kill and wait for children if and when the database dies, and wait for the database to come back before re-forking the child processes. That said: Handling of database connections is being completely redesigned with the phasing-in of libzdb for threaded connection pooling. -- ________________________________________________________________ Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlands________________________________http://www.nfg.nl _______________________________________________ DBmail mailing list [email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail
