SOCKETMAP performace (was Re: [Mimedefang] sendmail 8.13.0)

David F. Skoll dfs at roaringpenguin.com
Thu Jul 29 14:07:39 EDT 2004


On Thu, 29 Jul 2004 Matthew.van.Eerde at hbinc.com wrote:

> Well... you cache per-child nominally.  It is not out of the realm of
> possibility to have a thread-aware version of the DBI library that
> handles the connect() and "unconnect()" requests in such a way as to be
> real-time-safe but still cache.

The slaves are in different processes, though, not just in different threads.

The point is that you do NOT want to open a database connection,
call fork(), and then have more than one child try to use the same
database connection.  They'll be sharing a file descriptor, and if both
try to use it at the same time, things will get horribly messed up.

Regards,

David.



More information about the MIMEDefang mailing list