Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Martin H. Sluka
January 4, 2005, 9:45 pm
rate this thread
when their load is high, these servers need unusually long for
accepting messages, so I get a timeout in Net::Cmd::getline():
269 if (select($rout=$rin, undef, undef, $timeout))
The problem I have is, that the method just returns undef in
this case, unless when running in debug mode:
290 carp("$cmd: Timeout") if($cmd->debug);
291 return undef;
But if I use debug mode, I'll get lots of other annoying
messages, will have to set up an ugly $SIG handler
to filter them etc.
Does anybody have a good idea on how to figure out that the
undef I get stems from a timeout?