[mp2] Segfault on using $r->content_type()

2008-06-26 Thread Stephen Howard
1. Problem Description: I have an intermittent segfault with one particular ResponseHandler. The segfault, when it occurs, is triggered by calling $r->content_type in a lightly modified CGI::Simple (I made changes to it as it wasn't playing well with mod_perl2). What might be going awry? The

Re: mod_captcha

2008-06-26 Thread Perrin Harkins
On Wed, Jun 25, 2008 at 8:19 PM, Aaron Collins <[EMAIL PROTECTED]> wrote: > I'm trying to write a perl based mod_captcha using the recaptcha service, I > was wondering is someone could tell me which handler I should use that would > allow me to have mod_perl intercept a request going to a specific

Re: mod_perl caching problem

2008-06-26 Thread Perrin Harkins
On Tue, Jun 24, 2008 at 9:07 AM, william <[EMAIL PROTECTED]> wrote: > Before asking here, I had read a few articles in perl.apache.org about > caching issue in mod_perl, but I still don't get it right with my > program when I had already changed the input, it still giving me the > result of old inp

Re: [MP2]mod_perl and index.html

2008-06-26 Thread Torsten Foertsch
On Thu 26 Jun 2008, titetluc titetluc wrote: > In PerlResponseHandler, $r->main and $r->prev are undefined. I can not > understand why $r->main AND $r->prev are not defined (intuitively, $r->prev > should be defined) I'd expect $r->user to be set, not $r->prev->user nor $r->main->user. But I'd ex

Re: [MP2]mod_perl and index.html

2008-06-26 Thread titetluc titetluc
2008/6/26 Torsten Foertsch <[EMAIL PROTECTED]>: > On Wed 25 Jun 2008, titetluc titetluc wrote: > > PerlModule Test > > > > Require valid-user > > AuthType basic > > AuthName test_index > > SetHandler perl-script > > > > PerlAuthenHandler Apache2::AuthSSO::Test->set_user > > >

Re: [MP2]mod_perl and index.html

2008-06-26 Thread Torsten Foertsch
On Wed 25 Jun 2008, titetluc titetluc wrote: > PerlModule Test > >     Require valid-user >     AuthType basic >     AuthName test_index >     SetHandler perl-script > >     PerlAuthenHandler Apache2::AuthSSO::Test->set_user > >     PerlResponseHandler Apache2::AuthSSO::Test->display_user > > > I

Re: mod_perl: performance tips

2008-06-26 Thread Torsten Foertsch
On Wed 25 Jun 2008, tyju tiui wrote: > but it is still way behind the C module (4 - 5 times fewer requests per > second). Is mod_perl just that much slower than a pure C module? Yes it is slower. MP registers hooks at almost all places possible. Your pure C module probably uses only 1 or 2 of the