Re: Mail::Box POP3 locking issues (2.057 and previous)

Mark Overmeer <[email protected]> Wed, 22 Sep 2004 11:53:49 +0200
Newsgroups gmane.comp.lang.perl.modules.mail-box
Organization MARKOV Solutions
Message-ID <[email protected]>
* Jason Woodward ([email protected]) [040921 03:07]:
> This pop3 locking issue is still ongoing.  I have isolated it a bit
> closer I think.

The problem is related to a ref-counting issue.  The weird thing is,
that if it delete $pop3->{MB_foldername}, it works.  Your script with
a little test extension:

 my $pop3 = $mgr->open(...);
 $pop3->close;

 # Will be reported
 warn "CIRC REF 1" if defined $pop3;
 delete $pop3->{MB_foldername};

 # Will not be reported
 warn "CIRC REF 2" if defined $pop3;

Can you reproduce this?
This should not be happening, because the foldername is a simple scalar,
which has nothing to do with (circular) references...

Which version of perl are you using?
What is your version of Scalar::Util?
-- 
               MarkOv

------------------------------------------------------------------------
drs Mark A.C.J. Overmeer                                MARKOV Solutions
       [email protected]                          [email protected]
http://Mark.Overmeer.net                   http://solutions.overmeer.net