You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Stas Bekman <st...@stason.org> on 2005/04/27 06:54:20 UTC
[mp2] TestProtocol::echo_timeout and TIMEUP error
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?
--
__________________________________________________________________
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
Re: [mp2] TestProtocol::echo_timeout and TIMEUP error
Posted by Stas Bekman <st...@stason.org>.
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