Re: forkserver and DBI

2008-04-25 Thread Jose Luis Martinez
Ernesto escribió: Hi all, please have a look at my db/suite - maybe it gives you some inspiration, how to handle DBI connections in QPSMTPD plugins. The problem should be affecting you if you used the TLS plugin. Can you activate TLS and try this script on your server? #!/usr/bin/perl my $t

Re: forkserver and DBI

2008-04-25 Thread Ernesto
Hi all, please have a look at my db/suite - maybe it gives you some inspiration, how to handle DBI connections in QPSMTPD plugins. It runs on our server in production on QPSMTPD forkserver 0.32 in combination with Exim 4.63, MySQL 5.0.32 and Dovecot 1.0rc15 on Debian Etch. Please see http://die

Re: forkserver and DBI

2008-04-25 Thread Peter J. Holzer
On 2008-04-25 11:00:22 +0100, Steve Kemp wrote: > On Fri Apr 25, 2008 at 11:13:09 +0200, Peter J. Holzer wrote: > > Well, qpsmtpd doesn't create the connection, your plugin does. > > Indeed. > > > DBI connections generally cannot be shared between processes (not even for > > selects, if it work

Re: forkserver and DBI (was: high CPU on "lost" processes with forkserver)

2008-04-25 Thread Steve Kemp
On Fri Apr 25, 2008 at 11:13:09 +0200, Peter J. Holzer wrote: > > I use a singleton module to gain access to the DBI instance, > > That's a good idea. I tend to use singletons pretty exclusively for DBI, project-wide config file handling, and the use of Danga's memcached (which really rock