Re: Is it advisable NOT to limit MaxRequestsPerChild in Win32 modperl?

2007-05-24 Thread Lionel MARTIN
Unless I'm mistaken, and even if there is only one (child) Apache process and several thread under Windows (winnt MPM), the only directive that can be used is MaxRequestsPerChild and not MaxRequestsPerThread. It is not possible to restart individual threads (and associated Perl Interpreteers)

Re: File Handle Issues in Mod_Perl 2.0

2007-05-24 Thread Perrin Harkins
Justin, My main question is why would it work differently from mod_perl 1.0 to 2.0? This doesn't sound like something that mod_perl would affect. Do you have different versions of perl, or different OSes, for these two mod_perl servers? - Perrin

Re: sharing data structures between scripts (forms)

2007-05-24 Thread Perrin Harkins
On 5/24/07, Mark Henry <[EMAIL PROTECTED]> wrote: what I've done instead is have a single script, which based on a hidden field in a form, figures out where execution should resume, and for every re-invocation of the script, the data structures would (should?) be reloaded anew. That sounds reas

Re: apache->request

2007-05-24 Thread Perrin Harkins
On 5/25/07, _spitFIRE <[EMAIL PROTECTED]> wrote: Sorry! I meant to say Apache 1.3/ mod_perl 1.29 / apache-authcookie-1.4 I don't actually see Apache-AuthCookie 1.4 on CPAN or even backpan. It must be pretty old. There is a note in version 2.011 which came out 7 years ago about how to upgrade

Re: Is it advisable NOT to limit MaxRequestsPerChild in Win32 modperl?

2007-05-24 Thread Perrin Harkins
On 5/24/07, Foo JH <[EMAIL PROTECTED]> wrote: This I accomplish by setting a small number (for testing) to MaxRequestsPerChild to see how modperl recovers from a reload. I think you're looking for MaxRequestsPerThread. There is only one process on the Windows MPM. - Perrin

Re: apache->request

2007-05-24 Thread _spitFIRE
Perrin Harkins wrote: > > Meaning mod_perl 1.30? > >> I tried to deploy the sample code given with AuthCookie-1.3 > > Which module is this? There are many things on CPAN with AuthCookie > in their names, but none of them are version 1.3. > > - Perrin > > Sorry! I meant to say Apache 1.3/

Re: apache->request

2007-05-24 Thread Perrin Harkins
On 5/25/07, _spitFIRE <[EMAIL PROTECTED]> wrote: Before I post my question, I would like to say this - "I'm new to mod_perl and hence bear with my silly questions!" Welcome aboard, _spit. I'm using Mac OSX 10.4.8/Apache 1.3 Meaning mod_perl 1.30? I tried to deploy the sample code given

apache->request

2007-05-24 Thread _spitFIRE
Hi all, Before I post my question, I would like to say this - "I'm new to mod_perl and hence bear with my silly questions!". I'm using Mac OSX 10.4.8/Apache 1.3 . I want to currently develop a perl object that I can use for authorization (using AuthCookie). I tried to deploy the sample code giv

Re: sharing data structures between scripts (forms)

2007-05-24 Thread Jonathan Vanasco
So, my *new* question is, (and I've got the hardcopy of the mod perl book so if theres a chapter I need to read, just point it out) i'd read the book - sit down and spend 2-4 hours skimming through it. all of your questions are answered in it, and it explains the architecture much more

Re: sharing data structures between scripts (forms)

2007-05-24 Thread Mark Henry
All, Thanks for the helpful replies - I'm totally new to the apache world so being a bit gun-shy on trying a persistence framework off the bat, what I've done instead is have a single script, which based on a hidden field in a form, figures out where execution should resume, and for every re-invo

apreq overlimit requests tie up modperl

2007-05-24 Thread Jonathan Vanasco
I'm having an issue with libapreq overlimit issues: if i set the limit to 200k and post a 250k file, the following expected things happen: • I can catch the apreq error my $apr_error= $self->ApacheRequest->body_status(); if ( $apr_error eq 'Exceeds c

backtrace for segfault....

2007-05-24 Thread Tyler Bird
hey guys I read a little more and was able to generate a backtrace for my apache children segfaulting here it is below. Program terminated with signal 11, Segmentation fault. #0 0x0051389a in apr_palloc () from /usr/lib/libapr-1.so.0 (gdb) bt #0 0x0051389a in apr_palloc () from /usr/lib/libapr

Re: segmentation fault.

2007-05-24 Thread Tyler Bird
Philippe M. Chiasson wrote: Tyler Bird wrote: Ok, I have a system I converted from cgi to mod_perl. We recently upgraded to mod_perl 2.0 and apache 2.2 on RHL5 I am having a problem. When I refresh a certain page 5 times or about ( it's completely random ) The page renders fine, but in

Re: segmentation fault.

2007-05-24 Thread Tyler Bird
Tyler Bird wrote: Clinton Gormley wrote: On Wed, 2007-05-23 at 17:04 -0400, Dondi M. Stroma wrote: I've also gotten segfaults from reading a bad cookie. Another segfault problem I experienced was caused by using a lexical variable in a sub in a Registry script that was declared outside of t

Re: Module proposal: CGI::Cookie::Protected

2007-05-24 Thread Perrin Harkins
On 5/24/07, Kurt George Gjerde <[EMAIL PROTECTED]> wrote: The current implementation uses MD5 to generate the fingerprint. Probably a good idea to use SHA1 instead at this point. - Perrin

ModPerl2 Quick Reference Card

2007-05-24 Thread Scott Simpson
Is there a quick reference card for MP2? Is there going to be one? This e-mail and any files attached to it may contain confidential material and any such material is private to the sender and the sender's intended recipient(s). If you receive this e-mail in error then you are not permitted t

Is it advisable NOT to limit MaxRequestsPerChild in Win32 modperl?

2007-05-24 Thread Foo JH
Hi all (my turn to ask modperl questions this time), My persistent peeve with the Win32 Apache2.2 modperl is that it sometimes throws out this odd error: [Mon Mar 05 21:19:47 2007] [notice] Parent: child process exited with status 3221225477 -- Restarting. It's not very nice to have clients

Re: Module proposal: CGI::Cookie::Protected

2007-05-24 Thread John ORourke
Check out a similar module I wrote last year for mod_perl: http://www.versatilia.com/downloads/Apache2/Cookie/Validated.pm It's designed to store simple hashes. I still haven't got around to putting it on CPAN but have been using it happily for 18 months and it has a couple of features you mig

Module proposal: CGI::Cookie::Protected

2007-05-24 Thread Kurt George Gjerde
Hi, Grateful for any feedback on the module podded below. Is the name ok or should I perhaps change to CGI::Cookie::Fingerprint or something else? Thanks, -Kurt. NAME CGI::Cookie::Protected - Cookies with fingerprint SYNOPSIS use CGI qw(:standard); use CGI::Cookie::Prote

Re: segmentation fault.

2007-05-24 Thread Clinton Gormley
On Wed, 2007-05-23 at 17:04 -0400, Dondi M. Stroma wrote: > I've also gotten segfaults from reading a bad cookie. Another segfault > problem I experienced was caused by using a lexical variable in a sub in a > Registry script that was declared outside of the sub (specifically, it was a > CGI.pm