Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Dev

restart_count (was: Re: Apache::DBI)

 

 

ModPerl dev RSS feed   Index | Next | Previous | View Threaded


adam.prime at utoronto

Jul 26, 2009, 9:03 PM

Post #1 of 1 (461 views)
Permalink
restart_count (was: Re: Apache::DBI)

> Looks like we have a unit test for part of restart_count:
>
>
> phred[at]harpua ~/dev/svn/modperl/mod_perl-2.0 $ ack restart_count t/
> t/conf/post_config_startup.pl
> 110: # my $cnt = Apache2::ServerUtil::restart_count();
>
> t/htdocs/vhost/post_config.pl
> 6:$TestVhost::config::restart_count = Apache2::ServerUtil::restart_count();
>
> t/response/TestAPI/server_util.pm
> 59: ok t_cmp Apache2::ServerUtil::restart_count, 2, "restart count";
>
> t/response/TestVhost/config.pm
> 21:our $restart_count;
> 37: ok t_cmp($restart_count, 2, "PerlPostConfigRequire");

None of these tests anything behavoir after a restart. restart_count
behaves as documented for the initial startup, it's just what it does on
subsequent restart/graceful's that differ. I tried it with 2.2, and 2.0
versions of apache and saw the same thing. This not being as documented
is somewhat concerning to me. I went back to 2.0.1, and it that version
behaved the same as 2.0.4 for me. I haven't looked at anything prior to
that though.

Adam

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

ModPerl dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.