OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: A question about Milters and Thread Safety

From: Leandro Santi (lesantigmail.com)
Date: Wed Sep 05 2007 - 14:17:06 CDT


On 9/5/07, Leandro Santi <lesantigmail.com> wrote:
> http://rhyolite.com/anti-spam/dcc/
>
> (Look for dccm.) It's primarily written in C. From
> what I recall, it works out the DNS queries by
> wrapping the standard system resolver API with
> POSIX thread locks (this applies to dccm, but not
> to other single threaded apps that are being
> distributed in the same source tarball). This
> workaround should be good enough, given an
> appropriate system architecture.

One more detail, newest dccm seem to implement
the notion of "helper" DNS resolver processes (i.e.
not threads,) so that the multithreaded dccm can
sustain better thoughput. Unfortunately, I haven't
been using the DCC for a couple of years, so I'm
not up to finer details; but it might be worth to take
a look at it.

Leandro