in reply to Re: 2 problems using sockets perl 5.8 and mod_perl2 on Linux
in thread 2 problems using sockets perl 5.8 and mod_perl2 on Linux
Hello,
Okay, I grok this and removed the
I don't understand why even without checking this the loop spins uncontrolably until it times out (notice the use of Time::HiRes).if ($!) { print STDERR "ERROR $!\n"; }
What I am observing as that this select loop keeps returning, $nf is set to 1, but there is no file descriptor in $eout, nor in $rout set to 1 and the loop just starts over again. This chomps up CPU and degrades the performance so badly I can't use it for it's intended purpose.
Is the logic I am using to detect readable or erroring file descriptors perhaps incorrect?
Thanks -- rr
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: 2 problems using sockets perl 5.8 and mod_perl2 on Linux
by Thelonius (Priest) on Jul 03, 2003 at 03:05 UTC |
In Section
Seekers of Perl Wisdom