perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: [mp2] TestProtocol::echo_timeout and TIMEUP error
Date Thu, 28 Apr 2005 21:46:37 GMT
Stas Bekman wrote:
> as fixed in TestError::runtime we use APR::Status::is_EAGAIN on socket 
> timeout errors. This leads me to believe that
> 
>   die "timed out, giving up: $@" if $@ == APR::Const::TIMEUP;
> 
> in TestProtocol::echo_timeout need to be fixed in the same way. No?

Answering my own question, the following happens:

nonblocking IO => is_EAGAIN
timeout(0)     => is_EAGAIN
timeout(1)     => TIMEUP

So timeout(0) is probably the same as setting a nonblocking IO.

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message