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

Mailing List Archive: ModPerl: Dev

Working config directives

 

 

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


matt at sergeant

Apr 25, 2001, 9:56 AM

Post #1 of 6 (1604 views)
Permalink
Working config directives

This seems to work, Doug:

BOOT:
if (!ap_find_linked_module(ap_find_module_name(&XS_AxKit))) {
ap_add_module(&XS_AxKit);
}

void
END ()
CODE:
if (ap_find_linked_module(ap_find_module_name(&XS_AxKit))) {
ap_remove_module(&XS_AxKit);
}

--
<Matt/>

/|| ** Founder and CTO ** ** http://axkit.com/ **
//|| ** AxKit.com Ltd ** ** XML Application Serving **
// || ** http://axkit.org ** ** XSLT, XPathScript, XSP **
// \\| // ** mod_perl news and resources: http://take23.org **
\\//
//\\
// \\


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


dougm at covalent

Apr 25, 2001, 10:03 AM

Post #2 of 6 (1571 views)
Permalink
Re: Working config directives [In reply to]

hmm, that's how it was before the change in 1.25, i will revisit before
1.26.


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


matt at sergeant

Apr 25, 2001, 10:16 AM

Post #3 of 6 (1555 views)
Permalink
Re: Working config directives [In reply to]

On Wed, 25 Apr 2001, Doug MacEachern wrote:

> hmm, that's how it was before the change in 1.25, i will revisit before
> 1.26.

Well not quite. You had:

BOOT:
XS_AxKit.name = "AxKit";
add_module(&XS_AxKit);
stash_mod_pointer("AxKit", &XS_AxKit);

void
END()

CODE:
remove_module_cleanup(NULL);

Then you added the register_cleanup() stuff.

Anyway, I haven't fully released this yet (it's in the beta's of AxKit
1.4), so it hasn't been all that extensively tested. I'll keep you posted
though.

--
<Matt/>

/|| ** Founder and CTO ** ** http://axkit.com/ **
//|| ** AxKit.com Ltd ** ** XML Application Serving **
// || ** http://axkit.org ** ** XSLT, XPathScript, XSP **
// \\| // ** mod_perl news and resources: http://take23.org **
\\//
//\\
// \\


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


dougm at covalent

Apr 25, 2001, 10:55 AM

Post #4 of 6 (1557 views)
Permalink
Re: Working config directives [In reply to]

> Well not quite. You had:
>
> BOOT:
> XS_AxKit.name = "AxKit";
> add_module(&XS_AxKit);
> stash_mod_pointer("AxKit", &XS_AxKit);

oh right. so is it the check for find_linked_module() that helps here or
removing stash_mod_pointer() ? Apache::ModuleConfig->get won't work
without stash_mod_pointer()
do you have other LoadModules configured? thats what the added
register_cleanup was trying to fix.


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


matt at sergeant

Apr 25, 2001, 11:00 AM

Post #5 of 6 (1563 views)
Permalink
Re: Working config directives [In reply to]

On Wed, 25 Apr 2001, Doug MacEachern wrote:

>
> > Well not quite. You had:
> >
> > BOOT:
> > XS_AxKit.name = "AxKit";
> > add_module(&XS_AxKit);
> > stash_mod_pointer("AxKit", &XS_AxKit);
>
> oh right. so is it the check for find_linked_module() that helps here or
> removing stash_mod_pointer() ? Apache::ModuleConfig->get won't work
> without stash_mod_pointer()

I've no idea what makes the difference, I'm playing murder in the dark
with these bugs :-)

But then I'm not using ModuleConfig any more either (I'm using a custom
struct and custom XS code to get it).

> do you have other LoadModules configured? thats what the added
> register_cleanup was trying to fix.

No, I don't have any other LoadModules at the moment. I'll add something
to see if it faults. I assume anything (e.g. mod_rewrite) will work?

--
<Matt/>

/|| ** Founder and CTO ** ** http://axkit.com/ **
//|| ** AxKit.com Ltd ** ** XML Application Serving **
// || ** http://axkit.org ** ** XSLT, XPathScript, XSP **
// \\| // ** mod_perl news and resources: http://take23.org **
\\//
//\\
// \\


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


dougm at covalent

Apr 25, 2001, 11:06 AM

Post #6 of 6 (1571 views)
Permalink
Re: Working config directives [In reply to]

On Wed, 25 Apr 2001, Matt Sergeant wrote:

> I've no idea what makes the difference, I'm playing murder in the dark
> with these bugs :-)

:)

> But then I'm not using ModuleConfig any more either (I'm using a custom
> struct and custom XS code to get it).

ok.

> No, I don't have any other LoadModules at the moment. I'll add something
> to see if it faults. I assume anything (e.g. mod_rewrite) will work?

maybe, i tried with php because that's what was in the mix originally when
the bug was report. i think i made it happen with mod_alias too.



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

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


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.