On Wed, 27 Apr 2016 22:45:42 +0000
Paul Murphy <[email protected]> wrote:

> I use filter_tick on very small servers to keep a database connection
> alive (<200 messages per day, and overnight 3-4 hours can pass
> without a message),

That's not a good approach; you don't know which process handles the
tick, so another process's connection could die.

> but if it wasn't there then I'd code filter_begin
> to check on the state and reconnect if necessary, or make a new
> connection every time.

Doing either of those is the better approach.

Regards,

Dianne.
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to