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

Re: qpsmtpd processes in an infinite loop

Thread Previous | Thread Next
From:
Matt Sergeant
Date:
June 18, 2005 11:11
Subject:
Re: qpsmtpd processes in an infinite loop
Message ID:
18f387b6be68eea043d6079748441ceb@sergeant.org
On 18 Jun 2005, at 12:08, Peter Eisch wrote:

> Ok, my turn to learn, where I have:
>
>         while (!$bb->is_empty) {
>             my $b = $bb->first;
>             $b->remove;
>             $b->read(my $newdata);
>             $data .= $newdata;
>             return $data if index($data, "\n") >= 0;
>         }
>
> 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 :-)

Matt.


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