Re: mod_perl2 DBI handle freshining problem solved "once and for all"...

2006-02-01 Thread Perrin Harkins
Tyler MacDonald wrote: DBI will replace it, removing all references to the one that failed to ping, and it will go out of scope and get DESTROY'ed. And what if you don't want to reconnect? The possibly still connected, possibly not handle is still left around in {CachedKids}. Why woul

Re: errors in module.t & others when installing mod_perl

2006-02-01 Thread Frank Wiles
On Wed, 01 Feb 2006 18:04:42 -0800 Bennett Haselton <[EMAIL PROTECTED]> wrote: > Yep, turns out that's displayed in the SERVER_SOFTWARE environment > variable by CGI scripts on the server. How did you know that? :) I'm magic! ;) Actually it's in the test report you posted earlier, I just mis

Re: errors in module.t & others when installing mod_perl

2006-02-01 Thread Tyler MacDonald
Bennett Haselton <[EMAIL PROTECTED]> wrote: > But, just to make sure, I tried doing it again -- ran the command > find /usr/lib/perl5 -name 'Apache2*' -exec rm -rf {} \; > to clean out those files, and then did > perl Makefile.PL MP_APXS=/usr/sbin/apxs There's also files named "mod_perl.pm

Re: errors in module.t & others when installing mod_perl

2006-02-01 Thread Bennett Haselton
At 07:38 PM 2/1/2006 -0600, Frank Wiles wrote: On Wed, 01 Feb 2006 17:25:06 -0800 Bennett Haselton <[EMAIL PROTECTED]> wrote: > Actually I thought that was the very first thing I had done before > starting to install mod_perl 2.0.2 on this machine. If you don't > uninstall the older version of

Re: errors in module.t & others when installing mod_perl

2006-02-01 Thread Frank Wiles
On Wed, 01 Feb 2006 17:25:06 -0800 Bennett Haselton <[EMAIL PROTECTED]> wrote: > Actually I thought that was the very first thing I had done before > starting to install mod_perl 2.0.2 on this machine. If you don't > uninstall the older version of mod_perl first, you get a more or less > clear er

Re: errors in module.t & others when installing mod_perl

2006-02-01 Thread Bennett Haselton
At 07:19 PM 2/1/2006 -0600, Frank Wiles wrote: On Wed, 01 Feb 2006 17:08:13 -0800 Bennett Haselton <[EMAIL PROTECTED]> wrote: > Now I'm trying to install mod_perl 2.0.2 on a different machine > running Apache/2.0.49. When I run "make test", this is the chart of > errors that I get at the end:

Re: errors in module.t & others when installing mod_perl

2006-02-01 Thread Frank Wiles
On Wed, 01 Feb 2006 17:08:13 -0800 Bennett Haselton <[EMAIL PROTECTED]> wrote: > Now I'm trying to install mod_perl 2.0.2 on a different machine > running Apache/2.0.49. When I run "make test", this is the chart of > errors that I get at the end: > *** Packages of interest status: > > Apache2

errors in module.t & others when installing mod_perl

2006-02-01 Thread Bennett Haselton
Now I'm trying to install mod_perl 2.0.2 on a different machine running Apache/2.0.49. When I run "make test", this is the chart of errors that I get at the end: Failed Test Stat Wstat Total Fail Failed List of Failed --

Re: mod_perl2 DBI handle freshining problem solved "once and for all"...

2006-02-01 Thread Tyler MacDonald
Mark Galbreath <[EMAIL PROTECTED]> wrote: > and...? > > ]:-) And at this point it sounds like there's more resistance than support for my particular flavour of bulletproofing of Apache::DBI, so I'm not going to bother, but I'm more than happy to keep arguing about it. I like a good argum

Re: [mp2] make test errors ("failed to start server") with mp 2.0.2

2006-02-01 Thread Bennett Haselton
At 01:25 AM 2/1/2006 -0800, Stas Bekman wrote: Bennett Haselton wrote: [...] still waiting for server to warm up: ... the server is down, giving up after 121 secs [ error] failed to st

Re: mod_perl2 DBI handle freshining problem solved "once and for all"...

2006-02-01 Thread Mark Galbreath
and...?   ]:-)>>> Tyler MacDonald [EMAIL PROTECTED]> 01-Feb-06 17:06 PM >>     Yeah, I ditched Apache::DBI early in diagnosing this problem. Then Iwrote that hack to solve it, which is what has started this whole thread. Iwas happy just posting the hack and leaving it at that, but you guys keepeg

Re: mod_perl2 DBI handle freshining problem solved "once and for all"...

2006-02-01 Thread Tyler MacDonald
Perrin Harkins <[EMAIL PROTECTED]> wrote: > > And here's some more conjecture: What if the ping just times out > > because the server is really, really busy? > DBI will replace it, removing all references to the one that failed to > ping, and it will go out of scope and get DESTROY'ed.

Re: mod_perl2 DBI handle freshining problem solved "once and for all"...

2006-02-01 Thread Perrin Harkins
On Wed, 2006-02-01 at 14:06 -0800, Tyler MacDonald wrote: > What if you > can't ping the connection because of a temporary TCP/IP problem [...] > And here's some more conjecture: What if the ping just times out > because the server is really, really busy? DBI will replace it, removing

Re: mod_perl2 DBI handle freshining problem solved "once and for all"...

2006-02-01 Thread Clinton Gormley
> Apache::DBI doesn't cache handles that you open during startup or > prevent you from calling disconnect on them. If you have it loaded > correctly and you don't call disconnect on handles opened in startup, > you should see warnings about the handles being DESTROYed without > disconnect. If yo

Re: mod_perl2 DBI handle freshining problem solved "once and for all"...

2006-02-01 Thread Tyler MacDonald
Perrin Harkins <[EMAIL PROTECTED]> wrote: > > Yes and no. If you can't ping the server, but the TCP socket is > > still open, that means you essentially have this TCP connection to the > > server that's not being used, in an open state, for the rest of the lifetime > > of your apache server ins

Re: mod_perl2 DBI handle freshining problem solved "once and for all"...

2006-02-01 Thread Perrin Harkins
On Wed, 2006-02-01 at 13:22 -0800, Tyler MacDonald wrote: > The point here was that I *wanted* the disconnect() to take place. > So I made sure Apache::DBI wasn't loaded when disconnect() was called before > the fork, so that it wouldn't trump my attempt to disconnect the handle > owned by th

Re: mod_perl2 DBI handle freshining problem solved "once and for all"...

2006-02-01 Thread Tyler MacDonald
Perrin Harkins <[EMAIL PROTECTED]> wrote: > > I am opening a handle before apache forks. However, I was > > able to verify that Apache::DBI wasn't loaded yet at that point (no > > $INC{'Apache/DBI.pm'}), and I was issuing a disconnect() before the fork > > took place. > If Apache::DBI w

Re: mod_perl2 DBI handle freshining problem solved "once and for all"...

2006-02-01 Thread Perrin Harkins
On Wed, 2006-02-01 at 11:27 -0800, Tyler MacDonald wrote: > I am opening a handle before apache forks. However, I was > able to verify that Apache::DBI wasn't loaded yet at that point (no > $INC{'Apache/DBI.pm'}), and I was issuing a disconnect() before the fork > took place. If Apac

Re: mod_perl2 DBI handle freshining problem solved "once and for all"...

2006-02-01 Thread Tyler MacDonald
Perrin Harkins <[EMAIL PROTECTED]> wrote: > I've never seen Apache::DBI or connect_cached return a dead handle. I > have had problems in the past with forking apps where I get back a > handle that still pings but has been shared across processes so it no > longer really works. Were you doing s

Re: More on httpd2.2, libapreq2, apr and mod_perl2 not playing nice

2006-02-01 Thread ben syverson
On Jan 30, 2006, at 5:16 PM, ben syverson wrote: Cool, thanks -- but now I'm having trouble compiling libapreq2. It fails, with /usr/bin/ld: cannot find -lexpat Update: everything has built fine now (thanks everyone), but I'm trying to get various modules to compile and install correctly.

Re: What handler am I ?

2006-02-01 Thread Len Kranendonk
Exactly what I was look for ! Thanks ! - Original Message - From: "Geoffrey Young" <[EMAIL PROTECTED]> To: "Len Kranendonk" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, February 01, 2006 3:32 PM Subject: Re: What handler am I ? Len Kranendonk wrote: Hello all, Suppose I have this:

Re: mod_perl2 DBI handle freshining problem solved "once and for all"...

2006-02-01 Thread Perrin Harkins
Tyler MacDonald wrote: Apache::DBI and DBI's connect_cached both claim to keep your database handles fresh and happy, but I've had numerous problems trying to get either of them to work properly. If a database connection is dropped, sometimes I'd have to refresh the page two or three times before

Re: What handler am I ?

2006-02-01 Thread Geoffrey Young
Len Kranendonk wrote: > Hello all, > > Suppose I have this: > > PerlModule My::Module > PerlChildInitHandler My::Module > PerlOutputFilterHandler My::Module > > In the sub handler {} , is there a way to determinate what type of handler I > am supposed to be ? yes, current_callback() > > I

[mp1] Apache::print() and timeouts

2006-02-01 Thread Nicholas Oxhøj
Hi I have some questions regarding mod_perl's implementation of Apache::print(), especially relating to Apache 1.3's "Timeout" directive. To start of, if I look at the documentation for the "Timeout" directive (http://httpd.apache.org/docs/1.3/mod/core.html#timeout): --- The TimeOut directive

Re: What handler am I ?

2006-02-01 Thread Frank Wiles
On Wed, 1 Feb 2006 13:29:24 +0100 "Len Kranendonk" <[EMAIL PROTECTED]> wrote: > Hello all, > > Suppose I have this: > > PerlModule My::Module > PerlChildInitHandler My::Module > PerlOutputFilterHandler My::Module > > In the sub handler {} , is there a way to determinate what type of > handler I

Re: mod_perl2 DBI handle freshining problem solved "once and for all"...

2006-02-01 Thread Tim Bunce
On Tue, Jan 31, 2006 at 01:23:12PM -0800, Tyler MacDonald wrote: > Apache::DBI and DBI's connect_cached both claim to keep your database > handles fresh and happy, but I've had numerous problems trying to get either > of them to work properly. If a database connection is dropped, sometimes I'd > ha

What handler am I ?

2006-02-01 Thread Len Kranendonk
Hello all,   Suppose I have this:   PerlModule My::Module PerlChildInitHandler My::Module PerlOutputFilterHandler My::Module   In the sub handler {} , is there a way to determinate what type of handler I am supposed to be ?   I'm running mod_perl2 for that matters.   Len

Re: Mod_perl using wrong version of perl

2006-02-01 Thread Francesc Guasch
En/na Steven Bush ha escrit: > It is still using the old version (5.8.3). I have recompiled perl and When I want to deploy a new version I make a new user and I install everything inside it. So I can have the new and old versions and I can go back if I ever want to. The .bash_profile for the web

Re: ld.so: Undefined symbol "_perl_get_sv"

2006-02-01 Thread Tomas Zerolo
On Wed, Feb 01, 2006 at 07:42:23PM +1300, Derek Robson wrote: > > > I cant find a libperl.so on my system at all. > > % find / -name "libperl.so" > % Maybe try find / -name "libperl.so*"? Usually there is a version suffix like libperl.so.5.8 or somesuch. I'm not an Openbsd guru, but maybe ldd

Re: [mp2] make test errors ("failed to start server") with mp 2.0.2

2006-02-01 Thread Stas Bekman
Bennett Haselton wrote: [...] still waiting for server to warm up: ... the server is down, giving up after 121 secs [ error] failed to start server! (please examine t/logs/error_log)