Re: plugins and parrallelization

2005-03-22 Thread Justin Mason
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric, I think you've found another bug ;) could you open a BZ entry on this? - --j. Eric A. Hall writes: > Eric A. Hall wrote: > > > I'm storing the session variables (such as login status) as part of $self, > > and storing message variables with

Re: plugins and parrallelization

2005-03-21 Thread Eric A. Hall
Eric A. Hall wrote: > I'm storing the session variables (such as login status) as part of $self, > and storing message variables with $permsgstatus. But where do I put the > logout/disconnect code? DESTROY seems to get called after every message > ("seems to" but I'm fairly blurry at this point),

Re: plugins and parrallelization

2005-03-19 Thread Eric A. Hall
Justin Mason wrote: > yeah -- as discussed in the Plugin pod docs, the life-cycle of the objects > you have access to there is: I'm currently trying to work this so the LDAP session is maintained for the lifetime of the module. TCP sessions are pretty expensive, and having hundreds or even thous

Re: plugins and parrallelization

2005-03-14 Thread Justin Mason
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric A. Hall writes: > On 3/14/2005 12:32 PM, Daryl C. W. O'Shea wrote: > > > There's no need to do your lookups more than once. Save the results the > > first time you do the lookups/processing. > > > > See the SPF.pm plugin for a good example. >

Re: plugins and parrallelization

2005-03-14 Thread Eric A. Hall
On 3/14/2005 12:32 PM, Daryl C. W. O'Shea wrote: > There's no need to do your lookups more than once. Save the results the > first time you do the lookups/processing. > > See the SPF.pm plugin for a good example. Oh right, it's persistent. Duh. Thanks -- Eric A. Hall

Re: plugins and parrallelization

2005-03-14 Thread Daryl C. W. O'Shea
Eric A. Hall wrote: It seems that the plugin architecture only allows a single pass/fail result, so if you want to have multiple tests with different shades of results, you have to call the plugin multiple times. Is that right? Over the weekend I banged together a preliminary ldapBlacklist.pm plugi

plugins and parrallelization

2005-03-14 Thread Eric A. Hall
It seems that the plugin architecture only allows a single pass/fail result, so if you want to have multiple tests with different shades of results, you have to call the plugin multiple times. Is that right? Over the weekend I banged together a preliminary ldapBlacklist.pm plugin which lets the m