develooper Front page | perl.qpsmtpd | Postings from March 2005

Re: logged error line 190 lib/Qpsmtpd.pm new

Thread Previous | Thread Next
From:
John Peacock
Date:
March 19, 2005 13:56
Subject:
Re: logged error line 190 lib/Qpsmtpd.pm new
Message ID:
423CA0C6.2010407@rowman.com
Bob wrote:
> "Can't locate object method new" in lib/Qpsmtpd.pm line 190
> didn't happen just now if I rebooted, so it seems to happen
> after I edit a 300 line non-pperled plugin too many times for a
> pperl'd qpsmtpd to handle the changes. 

You should not be testing plugins on a pperl'd instance of qpsmtpd, since using 
pperl means that qpsmtpd becomes a resident program and it will not correctly 
load changed plugin files without completely stopping and restarting the pperl'd 
code (which often requires a reboot as you have noticed).

It is very easy to use fork-server to test plugins during development:

  perl -T qpsmtpd-forkserver --user youruser

will start an instance running as an unpriveleged user on port 2525 for testing.

John

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About