AW: print throwing intermittent Segfaults

2009-11-23 Thread Denis Banovic
Hi Willian, Thanks for your checklist, I've run through it, segfaults still there... Right now it takes less then a minute from apache restart to the first segfault. This is from the error_log from the RedHat 5 Production machine: Apache2::RequestIO::print: (103) Software caused connection abort

Re: AW: print throwing intermittent Segfaults

2009-11-23 Thread André Warnier
Denis Banovic wrote: Hi Willian, Thanks for your checklist, I've run through it, segfaults still there... Right now it takes less then a minute from apache restart to the first segfault. This is from the error_log from the RedHat 5 Production machine: Apache2::RequestIO::print: (103) Software c

RE: AW: print throwing intermittent Segfaults

2009-11-23 Thread Morten Bjørnsvik
Hi I've had a similar error I "fixed" it by adding an eval block around the offending code which was tracked back to MASON. http://rt.cpan.org/Public/Bug/Display.html?id=49031 We compile everything from scratch apache,perl,mod_perl,mason, all modules by an automated build script. Earlier when

AW: print throwing intermittent Segfaults [ solved ]

2009-11-23 Thread Denis Banovic
Hi Morten, Thanks a lot, By putting an eval around the code I found out, that the segfault was produced by next request to the same child after the $r->print failed. $r->print is still failing from time to time, but it's not producing segfaults anymore! Thanks Denis -Ursprüngliche Nachr

FW: mod-perl child process

2009-11-23 Thread Kulasekaran, Raja
Hi The below method used to kill the child process after the successful execution of web request. $r->child_terminate(); Can anyone suggest me where and how do I call this method in the httpd.conf file. -Raja -Original Message- From: Kulasekaran, Raja Sent: Thursday, October 29

Re: mod-perl child process

2009-11-23 Thread Carl Johnstone
Kulasekaran, Raja wrote: > The below method used to kill the child process after the successful > execution of web request. > > $r->child_terminate(); > > Can anyone suggest me where and how do I call this method in the > httpd.conf file. You don't, you put it in your application code. However yo

Dynamically setting PerlVars in Apache per-request

2009-11-23 Thread Tosh Cooey
WAS: A better way to handle multiple client authentication? Yeah I use something similar in another application, but in this application I actually need to change the Auth_DBI_data_source variable since the "FROM pwd_table" would actually need to be "FROM clientA.pwd_table" and I can't see how

Re: Dynamically setting PerlVars in Apache per-request

2009-11-23 Thread Adam Prime
My suggestion would be to subclass AuthDBI to make the constructor fiddle with the dir_config entries that AuthDBI uses. See the docs for dir_config (the perl interface to PerlSetVar variables: http://perl.apache.org/docs/2.0/api/Apache2/ServerUtil.html#C_dir_config_ I have no idea how subcl

Announcing: Server::Control and apachectlp

2009-11-23 Thread Jonathan Swartz
Server::Control allows you to control servers ala apachectl, but with better diagnostics and many more features. It includes both a drop-in replacement for apachectl (”apachectlp”) and an OO interface. Though it was designed with Apache in mind, there are also subclasses for HTTP::Server::S

Re: Announcing: Server::Control and apachectlp

2009-11-23 Thread Devin Teske
Perhaps it would be prudent to add some logic that when "lsof" is not available, check for (and possibly use) "fstat" instead. Do note that the syntax of these two commands (lsof vs. fstat) are not the same and additional logic may need to be added. Just thought I'd mention "fstat" because not al

Apache2/mod_perl2 test in module

2009-11-23 Thread André Warnier
Hi. I created a perl object module which can be used by mod_perl2 handlers, cgi scripts, or stand-alone perl programs. It has a new() method which creates an object $obj, which is later used via standard $obj->method() calls. What would be a recommended/elegant mechanism/idiom, to have this mod

[mp2] OS X snow leopard compile issue

2009-11-23 Thread R.Polonski
Hello, I tried to compile mod_perl 2.0.4 on mac os x 10.6.2 httpd 2.2.14 ./configure --prefix=/tmp/q make ; make install mod_perl 2.0.4 and latest from SVN perl Makefile.PL MP_APXS=/tmp/q/bin/apxs PREFIX=/tmp/q2 system perl: perl -V Summary of my perl5 (revision 5 version 10 subversion 0) config

Problems running mod_perl install tests - where should these be posted to

2009-11-23 Thread greg . george
Regards, Greg George IT Shared Services Phone: +613-9091-2492 3/100 Victoria Prd, Melbourne Please consider the environment before printing this e-mail **