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

Re: qpsmtpd processes in an infinite loop

Thread Previous | Thread Next
From:
Joe Schaefer
Date:
June 20, 2005 09:49
Subject:
Re: qpsmtpd processes in an infinite loop
Message ID:
87d5qh9dnv.fsf@gemini.sunstarsys.com
matt@sergeant.org (Matt Sergeant) writes:

> On 18 Jun 2005, at 12:08, Peter Eisch wrote:

>> It should really just be:
>>
>>         while (!$bb->is_empty) {
>>             my $b = $bb->first;
>>             $b->read(my $newdata);
>>             $data .= $newdata;
>>             return $data if index($data, "\n") >= 0;
>>         }
>
> So we don't need to delete/remove the bucket at all? Sweet - that
> should be even faster :-)

I don't think it's correct though- how will $bb->is_empty ever be
false without something like $b->delete?  Hmm, maybe it's time to
start using Apache::Test for testing Apache::Qpsmtpd.

-- 
Joe Schaefer

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