Re: Timing/location for proper rcfg cleanup ?

2001-10-10 Thread Philippe M. Chiasson
On Wed, Oct 10, 2001 at 08:11:02PM -0700, Doug MacEachern wrote: > On Wed, 10 Oct 2001, Philippe M. Chiasson wrote: > > > I am trying to get pnotes not to leak, and I need to free the dynamically allocated > > HV in the rcfg->pnotes. > > you can do this: > > #ifdef USE_ITHREADS > modperl_in

Re: cvs commit: modperl-2.0 Makefile.PL

2001-10-10 Thread Doug MacEachern
stas, as i suspected, this patch does not work. please try with 'make clean' and without any modperl-2.0 modules installed into the default @INC. On 11 Oct 2001 [EMAIL PROTECTED] wrote: > dougm 01/10/10 20:29:32 > > Modified:.Makefile.PL > Log: > the DIR => [] patch doe

Re: modules get reloaded on each request?

2001-10-10 Thread Doug MacEachern
On Wed, 10 Oct 2001, Stas Bekman wrote: > Is there some code that resets %INC in the current mod_perl setup? must be something specific to your setup. % cd ModPerl-Registry % t/TEST -start ... % grep "why loading" t/logs/error_log | wc -l 2 % t/TEST -get /registry/basic.pl ... % grep "wh

Re: Apache->server?

2001-10-10 Thread Doug MacEachern
On Tue, 9 Oct 2001, Robin Berjon wrote: > Currently in 1.26, Apache->server will return the current vhost server if > called from a vhost, or the main server otherwise (many thanks to a recent > patch by Doug, previously it only returned the main server). that patch was only for sections. t

Re: cvs commit: modperl-2.0/xs/maps modperl_functions.map

2001-10-10 Thread Doug MacEachern
On Wed, 10 Oct 2001, Stas Bekman wrote: > damn, the emails are coming with such a huge delay :( Since you already > exercise Apache->server here, should I remove the tests I've added just now? keep em in there, more tests the better, as always. -

Re: Timing/location for proper rcfg cleanup ?

2001-10-10 Thread Doug MacEachern
On Wed, 10 Oct 2001, Philippe M. Chiasson wrote: > I am trying to get pnotes not to leak, and I need to free the dynamically allocated > HV in the rcfg->pnotes. you can do this: #ifdef USE_ITHREADS modperl_interp_t *interp = modperl_interp_select(r, NULL, r->server); dTHXa(interp->perl)

Apache::test vs Apache::Test

2001-10-10 Thread Alexander Pavlovic
Hello dev list, We are having a bit of debate at work as to what framework we should use for testing modperl enabled modules, i.e. writing module test cases intiated by make test. Apache::test seems to work quite nicely it even pushes your local blib path automatically onto @INC, however other pe

Timing/location for proper rcfg cleanup ?

2001-10-10 Thread Philippe M. Chiasson
I am trying to get pnotes not to leak, and I need to free the dynamically allocated HV in the rcfg->pnotes. The rcfg is created in the ap_hook_create_request phase and I can't find the 'right' place to put my cleaning up code into. Remember that to free perl stuff, I need a handle on the curren

Re: generalizing Apache::Test

2001-10-10 Thread Doug MacEachern
On Tue, 9 Oct 2001, Stas Bekman wrote: > for my $subdir (qw(Response Protocol Hooks Filter)) { ok, well what do you want to add? these are there to configure all Perl*Handlers. - To unsubscribe, e-mail: [EMAIL PROTECTE

Re: cvs commit: modperl-2.0/xs/maps modperl_functions.map

2001-10-10 Thread Stas Bekman
[EMAIL PROTECTED] wrote: > dougm 01/10/09 11:01:21 > > Modified:t/conf modperl_extra.pl >xs/Apache/ServerUtil Apache__ServerUtil.h >xs/maps modperl_functions.map > Log: > add Apache->server method > > Revision ChangesPath > 1.9

Re: Apache->server?

2001-10-10 Thread Stas Bekman
Doug MacEachern wrote: > On Tue, 9 Oct 2001, Stas Bekman wrote: > > >>With what we have now, I cannot do: >>Apache->server->dir_config('ModPerl::RegistryCooker::DEBUG'), >>or do I? >> > > you do now :) Great! > anything that existed in 1.x and is not implemented in 2.0 should be > somewher

modules get reloaded on each request?

2001-10-10 Thread Stas Bekman
Is there some code that resets %INC in the current mod_perl setup? I observe a very weird behavior in the ModPerl-Registry setup, I preload all the modules that I use from httpd.conf, but then I see them reloaded on every request (It's not Apache::Reload, I've commented it out in extra.conf.in