current callback bug?

2006-06-26 Thread john doe
So I want to register a method to be run during the cleanup phase.  After the content phase I'm in the logging phase and I do the following:$r->register_cleanup(sub { $self->process_queue(); });Inside process_queue method I print out what phase I'm in using r->current_callback(), it "claims" I'm in

bug in current_callback or worse?!?!

2006-06-23 Thread john doe
So I want to register a method to be run during the cleanup phase.  After the content phase I'm in the logging phase and I do the following:$r->register_cleanup(sub { $self->process_queue(); }); Inside process_queue method I print out what phase I'm in using r->current_callback(), it "claims" I'm i

Re: memory leaks in mod_perl 1.29?

2006-06-07 Thread john doe
compiled mod_perl and DSO mod_perl. But DOES NOT happen when I DSO a C handler on this Linux machine nor on a FreeBSD machine with static mod_perl.Any ideas on how to identify the cause of the leak? Perrin Harkins <[EMAIL PROTECTED]> wrote: On Wed, 2006-06-07 at 13:58 -0700, john doe wrote:&g

Re: memory leaks in mod_perl 1.29?

2006-06-07 Thread john doe
der();    $r->print('hello world');    return 200;}1;Perrin Harkins <[EMAIL PROTECTED]> wrote: On Wed, 2006-06-07 at 12:33 -0700, john doe wrote:> I suspect our current setup of mod_perl is leaking memory, most likely> due to bad C/C++ libraries somewhere. I came to this conclu

memory leaks in mod_perl 1.29?

2006-06-07 Thread john doe
I suspect our current setup of mod_perl is leaking memory, most likely due to bad C/C++ libraries somewhere.  I came to this conclusion after days of research and testing. I setup a very very thin version of apache 1.3.34 with mod_perl compiled statically. I have an ever thinner handler that just p

Re: Nested Interpolation

2006-03-31 Thread Hans Meier (John Doe)
Hans Meier (John Doe) am Freitag, 31. März 2006 18.37: > Steve Thames am Freitag, 31. März 2006 15.41: > > Consider this: > > > > my %names = (Bob => 'Robert Brower'); > > my $caption = 'Name: $names{Bob)'; > > print eval "

Re: Nested Interpolation

2006-03-31 Thread Hans Meier (John Doe)
Steve Thames am Freitag, 31. März 2006 15.41: > Consider this: > > my %names = (Bob => 'Robert Brower'); > my $caption = 'Name: $names{Bob)'; > print eval "qq|$caption|"; > > If you can't see it, there is a syntax error in $caption: closing > paren ) instead of brace }. The eval

Re: timestamp of Apache::DB

2006-02-08 Thread John Doe
Perrin Harkins am Dienstag, 7. Februar 2006 18.45: > On Tue, 2006-02-07 at 08:56 +0100, John Doe wrote: > > Ken Perl am Dienstag, 7. Februar 2006 07.44: > > > when Apache::DB is initialized it will write a line of log into > > > error.log, but without a timestamp

Re: timestamp of Apache::DB

2006-02-06 Thread John Doe
Ken Perl am Dienstag, 7. Februar 2006 07.44: > when Apache::DB is initialized it will write a line of log into > error.log, but without a timestamp, > [notice] Apache::DB initialized in child 1957 > May I add one? > > -- > perl -e 'print unpack(u,"62V5N\"FME;G\!E ")' yes, by putting the line use

Re: modperl and DBI or DBD with mysql

2006-02-05 Thread John Doe
t all I provided any) hth, joe > At 04:31 a.m. 6/02/2006, John Doe wrote: > >Jonathan Vanasco am Sonntag, 5. Februar 2006 00.27: > > > Try: > > > > > > my $dbArgs = { RaiseError => 1, AutoCommit => 0 , TraceLevel => 3 }; > > > my$dbh =

Re: modperl and DBI or DBD with mysql

2006-02-05 Thread John Doe
Jonathan Vanasco am Sonntag, 5. Februar 2006 00.27: > Try: > > my $dbArgs = { RaiseError => 1, AutoCommit => 0 , TraceLevel => 3 }; > my$dbh = DBI->connect( $db, $dbUser, $dbPass , $dbArgs ); > > while you `tail -f` the errorlog ( /usr/local/apache2/log/error_log > on my system ) > > the trace

Re: Clarifying Q: Usage suggestions: caching DB metadata with mod_perl?

2006-02-04 Thread John Doe
RJ Herrick am Sonntag, 5. Februar 2006 01.03: > Thanks to the Johns for their responses, but I believe perhaps I was > unclear about my intent. > > In validating my form input I look at my DB tables to see what types of > input they will accept (valid values, maxlength, NULL ok, etc). This > data i

Re: mod_perl: How pass variables (objects) from page to page?

2005-11-23 Thread John Doe
Jeremy Nixon am Dienstag, 15. November 2005 23.16: > John Doe <[EMAIL PROTECTED]> wrote: > > Hope it's not a stupid question, but are you sure %d_cache survives a > > request? Maybe I'm totally misunderstanding something but I thought > > after

Re: mod_perl: How pass variables (objects) from page to page?

2005-11-15 Thread John Doe
John Doe am Dienstag, 15. November 2005 12.35: > David Baird am Dienstag, 15. November 2005 11.07: > > On 11/15/05, John Doe <[EMAIL PROTECTED]> wrote: > > > Jeremy Nixon am Dienstag, 15. November 2005 08.06: > > > > Peter1 Alvin <[EMAIL PROTECTED]> wrot

Re: mod_perl: How pass variables (objects) from page to page?

2005-11-15 Thread John Doe
David Baird am Dienstag, 15. November 2005 11.07: > On 11/15/05, John Doe <[EMAIL PROTECTED]> wrote: > > Jeremy Nixon am Dienstag, 15. November 2005 08.06: > > > Peter1 Alvin <[EMAIL PROTECTED]> wrote: [...] > > > { # start a lexical scope > > > my

Re: mod_perl: How pass variables (objects) from page to page?

2005-11-15 Thread John Doe
Jeremy Nixon am Dienstag, 15. November 2005 08.06: > Peter1 Alvin <[EMAIL PROTECTED]> wrote: > > Please tell me I can do this! > > > > Using mod_perl, how do you keep Perl objects in RAM from page to page? [...] > As an example, I have a handler that needs to read a directory listing. > Most of th

Re: PerlTransHandler question

2005-03-10 Thread John Doe
Am Mittwoch, 9. März 2005 01.19 schrieb shawn: > Hi, I have been having a few problems with dial-up users downloading > large pictures from my mod_perl enabled webserver, also I see spikes in > cpu usage which also suggests to me that the server is doing a lot of > work serving up the large images.