Brent 'Dax' Royal-Gordon wrote:
Stas Bekman wrote:

Even with a line in my httpd.conf like:
    PerlLoadModule Apache::Regulate
    RegulateDatabase 'dbi:mysql:apache' apache [redacted]


Please try:

<Perl>
# start perl early
</Perl>
PerlLoadModule Apache::Regulate
RegulateDatabase 'dbi:mysql:apache' apache [redacted]


Doesn't seem to have helped. Before and after adding those lines to httpd.conf, a Data::Dumper call in global_init gives:

$VAR1 = bless( {
                 'on' => 0,
                 'Database' => [
                                 'DBI:mysql:apache',
                                 'apache',
                                 'password'
                               ],
                 'dead' => 0,
                 'ChunkSize' => '8000',
                 'TotalQuota' => '1966080',
                 'TotalBuffer' => 4
               }, 'Apache::Regulate' );

Which is precisely the default configuration.

For what it's worth, I ended up having to modify my output filter function to use this to load the full configuration:

    my %conf=(
        %{Apache::Module->get_config(__PACKAGE__, $f->r->server)},
        %{Apache::Module->get_config(__PACKAGE__, $f->r->server,
            $f->r->per_dir_config)}
    );

Might a similar mixing be necessary in global_init?

I still didn't have a chance to look at it in details, but could it be the issue with merging not performing a deep copy?
http://perl.apache.org/docs/2.0/user/config/custom.html#Merging_Entries_Whose_Values_Are_References


If not, I'll look tomorrow on a fresh head, unless someone beats me to it.

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

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to