RE: Can't retrieve page I just created with LWP under mod_perl

2005-05-09 Thread Dan Horne
> > It might be that, on Windows, you're running into the > multithreading limitations of mod_perl 1: > http://perl.apache.org/docs/1.0/os/win32/multithread.html Thanks, Randy - I had a nagging thought that I had read about a single-threading issue, so I scoured the Apache docs, but to no avail

Re: Docs error?

2005-05-09 Thread Stas Bekman
Stas Bekman wrote: Carl Johnstone wrote: I'd suggest rewording the "answer" to something like: In a URL which contains a query string, if the string has multiple parts separated by ampersands and it contains a key named "reg", for example http://example.com/foo.pl?foo=barĀ®=foobar

RE: Can't retrieve page I just created with LWP under mod_perl

2005-05-09 Thread Randy Kobes
On Tue, 10 May 2005, Dan Horne wrote: > > > > This works fine under standard CGI, but the LWP > > > > request times out under mod_perl. The temporary page > > > > name is random, so I know that it's not a file > > > > conflict. > > > > > > > > Have I missed something? I'm using Apache 1.3.31 and >

Re: What Perl/Apache for mod_perl under Windows?

2005-05-09 Thread Foo Ji-Haw
I've had similar experiences with Apache restarting itself. The problem almost always lies with my code though. :P But I don't know why it should cause Apache to reload itself, rather than simply spit out an error message and point me in the right direction. Things like this sometimes cause me

Re: old mod_perl (RC3) in FreeBSD 4.11

2005-05-09 Thread Foo Ji-Haw
Thanks for the reply Philip. I'm really not a guru at FreeBSD. I think I can code in the 'old way' until everything is resolved. No pain on my side. Philip M. Gollucci wrote: Foo Ji-Haw wrote: As of today 1900 SGT, I did a ports cvsup on my FreeBSD to install a nice fresh setup of apache2+modper

Re: installing libapreq and MP1

2005-05-09 Thread Stas Bekman
Marc Lambrichs wrote: I'm trying to install a MP1 enabled apache in /usr/local/httpd_1.3.33 and MP2 enabled apache in /usr/local/httpd_2.054. Now, when I try to install libapreq I get the following error: mod_perl 1.x ( < 1.99) is required at Makefile.PL line 34. BEGIN failed--compilation abort

Re: RC6 and Apache::DB

2005-05-09 Thread Stas Bekman
Marc Lambrichs wrote: I suppose there should be some changes made to Apache::DB using the new naming schema in RC6? Could anyone enlighten me? Mark, please take a look at these: http://perl.apache.org/docs/2.0/rename.html http://people.apache.org/~geoff/fixme -- ___

Re: [ANNOUNCE] mod_perl 2.0.0-RC6

2005-05-09 Thread Stas Bekman
Stas Bekman wrote: Octavian Rasnita wrote: Hi, I have tried to install it, using: # perl Makefile.pl # make After this step, it gave the following error: modperl_filter.c: In function `modperl_brigade_dump': modperl_filter.c:1253: internal error: Illegal instruction Please submit a full bug report,

RC6 and Apache::DB

2005-05-09 Thread Marc Lambrichs
I suppose there should be some changes made to Apache::DB using the new naming schema in RC6? Could anyone enlighten me? Cheers, Marc

Re: [ANNOUNCE] mod_perl 2.0.0-RC6

2005-05-09 Thread Stas Bekman
Stas Bekman wrote: Tom Williams wrote: [...] Ok, with this patch applied, I now get this: [EMAIL PROTECTED] mod_perl-2.0.0-RC6]$ perl Makefile.PL MP_APXS=/usr/local/apache-2.0.54/bin/apxs Reading Makefile.PL args from @ARGV MP_APXS = /usr/local/apache-2.0.54/bin/apxs mod_perl/1.999_021 installa

Re: advice needed: mod_perl reverse proxy

2005-05-09 Thread Stas Bekman
[EMAIL PROTECTED] wrote: hi i don't get it. the below filter does output the content alright it seems, but the setting of the header *value* is incorrect. (?) so the $f->print statement prints correct output but the calcualtion length(output) is incorrect (since it evaluates length of this exact

Re: advice needed: mod_perl reverse proxy

2005-05-09 Thread Stas Bekman
[EMAIL PROTECTED] wrote: Quoting Stas Bekman <[EMAIL PROTECTED]>: allan juul wrote: [...] Use must use $r->set_content_length(). See the mp2 test suite for examples. (i don't have that method available in my mod_perl2) You sure do :) % lookup set_content_length To use method 'set_content_length'

Re: [mp2] [PATCH] implement ap_save_brigade

2005-05-09 Thread Stas Bekman
Dorian Taylor wrote: it'd be nice to run a benchmark. I wonder why ap_save_brigade was marked as ! in the map file. Which normally means it's not going to be exposed. Did you by chance look at the archives for possible references to it? there's a mention of it in the APR::Bucket manpage. i could

RE: Can't retrieve page I just created with LWP under mod_perl

2005-05-09 Thread Dan Horne
> > > This works fine under standard CGI, but the LWP request times out > > > under mod_perl. The temporary page name is random, so I know that > > > it's not a > > file > > > conflict. > > > > > > Have I missed something? I'm using Apache 1.3.31 and > mod_perl 1.29 > > > on Windows XP, but wha

Re: [mp2] [PATCH] implement ap_save_brigade

2005-05-09 Thread Dorian Taylor
> it'd be nice to run a benchmark. I wonder why ap_save_brigade was marked > as ! in the map file. Which normally means it's not going to be exposed. > Did you by chance look at the archives for possible references to it? there's a mention of it in the APR::Bucket manpage. i couldn't find anythi

Re: [mp2] [PATCH] implement ap_save_brigade

2005-05-09 Thread Stas Bekman
Dorian Taylor wrote: How is that related? i think that's some cargo culting that i didn't clean up. that can be disregarded. sure So you think this approach will be faster than flattening bb on each filter invocation and concatenating the scalar? honestly i didn't give it any thought. when i wro

Re: [mp2] [PATCH] implement ap_save_brigade

2005-05-09 Thread Dorian Taylor
> How is that related? i think that's some cargo culting that i didn't clean up. that can be disregarded. > So you think this approach will be faster than flattening bb on each > filter invocation and concatenating the scalar? honestly i didn't give it any thought. when i wrote this i just want

Re: [mp2] [PATCH] implement ap_save_brigade

2005-05-09 Thread Stas Bekman
Dorian Taylor wrote: no tests currently, but there's a module on cpan that uses it. http://search.cpan.org/~DORIAN/Apache-TrapSubRequest-0.01/ Thanks Dorian, please see comments below. diff -ur mod_perl-2.0.0-RC4/lib/Apache/Pa

Re: Bareword "Apache2::Const::OK" not allowed

2005-05-09 Thread Stas Bekman
Igor Chudov wrote: Well, it complained about all uses of Apache2::Const and APR::Const. I replaced all such calls with calls(). After that, it complained about line 122 of RegistryCooker: sub init { $_[0]->{REQ} = $_[1]; $_[0]->{URI} = $_[1]->uri; this line

source scanning process seems to miss APR::Const::SUCCESS (and others)

2005-05-09 Thread Dorian Taylor
Using Debian testing with the packaged versions of Apache 2.0.54-prefork and APR 0.9.6, I ran make source_scan on the -current (rc6) tarball. It seems that only the constant groups fopen, fprot and filetype were found. I can only presume after looking at Apache2::ParseSource, that the required apr

installing libapreq and MP1

2005-05-09 Thread Marc Lambrichs
I'm trying to install a MP1 enabled apache in /usr/local/httpd_1.3.33 and MP2 enabled apache in /usr/local/httpd_2.054. Now, when I try to install libapreq I get the following error: mod_perl 1.x ( < 1.99) is required at Makefile.PL line 34. BEGIN failed--compilation aborted at Makefile.PL line

Re: source scanning process seems to miss APR::Const::SUCCESS (and others)

2005-05-09 Thread Stas Bekman
Dorian Taylor wrote: Using Debian testing with the packaged versions of Apache 2.0.54-prefork and APR 0.9.6, I ran make source_scan on the -current (rc6) tarball. It seems that only the constant groups fopen, fprot and filetype were found. I can only presume after looking at Apache2::ParseSource, t

Re: Bareword "Apache2::Const::OK" not allowed

2005-05-09 Thread Igor Chudov
Well, it complained about all uses of Apache2::Const and APR::Const. I replaced all such calls with calls(). After that, it complained about line 122 of RegistryCooker: sub init { $_[0]->{REQ} = $_[1]; $_[0]->{URI} = $_[1]->uri; this line $_[0]->{FILENAM

Re: Bareword "Apache2::Const::OK" not allowed

2005-05-09 Thread Stas Bekman
Igor Chudov wrote: I have just installed new Apache 2.0.54 and mod_perl (the latest). When running it, load of a webpage results in "Apache2::Const::OK" not allowed: [Mon May 09 15:07:13 2005] [error] [client 64.94.157.1] failed to resolve handler `ModPerl::PerlRun': Bareword "Apache2::Const::OK"

Re: [mp2] modperl2 compile error

2005-05-09 Thread Stas Bekman
Tom Caldwell wrote: Stas and Marc, So after a week hiatus I was finally able to return to my Perl/ModPerl2/Apache2 woes on my Dell 64bit box running redhat linux. When we last left the main saga, I had just rebuilt perl and modperl with the -fPIC flag only to find that the tests for subprocess.t

Re: Decaying Performance under newer apache/mp versions

2005-05-09 Thread Perrin Harkins
On Mon, 2005-05-09 at 15:22 -0400, J.e. Turcotte wrote: > Our OS guys feel like it's gotta be a code > problem, while I feel that perhaps our apache and/or modperl installs on > these machines are not ideal, or that in the move from mp1 to mp2, some new > capacities in modperl2 are allowing a br

Bareword "Apache2::Const::OK" not allowed

2005-05-09 Thread Igor Chudov
I have just installed new Apache 2.0.54 and mod_perl (the latest). When running it, load of a webpage results in "Apache2::Const::OK" not allowed: [Mon May 09 15:07:13 2005] [error] [client 64.94.157.1] failed to resolve handler `ModPerl::PerlRun': Bareword "Apache2::Const::OK" not allowed while

Re: Decaying Performance under newer apache/mp versions

2005-05-09 Thread Ricardo Ramos Massaro
On 5/9/05, J.e. Turcotte <[EMAIL PROTECTED]> wrote: > Has anyone encountered similar problems? Does anyone have a deeper > understanding of the whole apache/mp/perl setup to just ~know~ what these > symptoms are indicitive of? I'm sorry if this is completely unrelated, I am somewhat of a mp newbi

Re: Decaying Performance under newer apache/mp versions

2005-05-09 Thread J.e. Turcotte
here's our connect: $n is defined earlier, a central module that contains secure informations Apache::DBI->connect_on_init ( $n->database, $n->DBI_username, $n->DBI_password, { AutoCommit => 1, 'RaiseError' => 1 } ); and we connect to MySQL (4.1.7)... though

Re: [mp2] modperl2 compile error

2005-05-09 Thread Tom Caldwell
Stas and Marc, So after a week hiatus I was finally able to return to my Perl/ModPerl2/Apache2 woes on my Dell 64bit box running redhat linux. When we last left the main saga, I had just rebuilt perl and modperl with the -fPIC flag only to find that the tests for subprocess.t would not work. I

RE: Can't retrieve page I just created with LWP under mod_perl

2005-05-09 Thread Dan Horne
> -Original Message- > From: Stas Bekman [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 10 May 2005 1:39 a.m. > To: [EMAIL PROTECTED] > Cc: modperl@perl.apache.org > Subject: Re: Can't retrieve page I just created with LWP under mod_perl > > Dan Horne wrote: > > I've written a small CGI::Appli

Re: What Perl/Apache for mod_perl under Windows?

2005-05-09 Thread Helmut Zeilinger
Randy Kobes schrieb: On Mon, 9 May 2005, Helmut Zeilinger wrote: Hi, i am trying to run mod_perl under windows, using Apache/2.0.54 (Win32) mod_perl/1.999.24-dev Perl/v5.8.6 Apache windows binary from apache.org mod_perl.so binary from http://theoryx5.uwinnipeg.ca/ppms/x86/ (7 May 2005) Perl fr

Re: Decaying Performance under newer apache/mp versions

2005-05-09 Thread Gedanken
What database are you connecting to, and how are you connecting to it? -- gedanken

Decaying Performance under newer apache/mp versions

2005-05-09 Thread J.e. Turcotte
We have a pretty large apache/modperl setup on our original server that has worked quite well despite periods of heavy load... this setup is sitting on some older versions; Now we are developing new replacement content for large parts of this site on a pair of development only servers which are

Re: Debugging memory allocation

2005-05-09 Thread Perrin Harkins
On Mon, 2005-05-09 at 14:46 -0400, Sam Tregar wrote: > On Mon, 9 May 2005, Igor Chudov wrote: > > > I would like to at least have a log that lists pid, > > page requested, parameters, starting memory and memory > > after the request was processed. O rsome other ideas > > like that. Any thoughts? >

Re: Debugging memory allocation

2005-05-09 Thread Sam Tregar
On Mon, 9 May 2005, Igor Chudov wrote: > I would like to at least have a log that lists pid, > page requested, parameters, starting memory and memory > after the request was processed. O rsome other ideas > like that. Any thoughts? Check out GTop.pm. You should be able to write a LogHandler whic

[mp2] [PATCH] implement ap_save_brigade

2005-05-09 Thread Dorian Taylor
no tests currently, but there's a module on cpan that uses it. http://search.cpan.org/~DORIAN/Apache-TrapSubRequest-0.01/ diff -ur mod_perl-2.0.0-RC4/lib/Apache/ParseSource.pm mod_perl-2.0.0-RC4-djt/lib/Apache/ParseSource.pm --- mod_perl-2.0.0-RC4/lib/Apache/ParseSource.pmFri Jan 7 01:17

source scanning process seems to miss APR::Const::SUCCESS (and others)

2005-05-09 Thread Dorian Taylor
Using Debian testing with the packaged versions of Apache 2.0.54-prefork and APR 0.9.6, I ran make source_scan on the -current (rc6) tarball. It seems that only the constant groups fopen, fprot and filetype were found. I can only presume after looking at Apache2::ParseSource, that the required apr

Debugging memory allocation

2005-05-09 Thread Igor Chudov
my website algebra.com is 100% mod_perl. I use Apache::SizeLimit to kill my httpd children when they grow too big. What I do not like is that they grow. Sometimes they would live for a couple of hours, and sometimes they would die after 5 minutes and not so many requests. I would like to at least

Re: What Perl/Apache for mod_perl under Windows?

2005-05-09 Thread Randy Kobes
On Mon, 9 May 2005, Helmut Zeilinger wrote: > Hi, > > i am trying to run mod_perl under windows, using > > Apache/2.0.54 (Win32) mod_perl/1.999.24-dev Perl/v5.8.6 > > Apache windows binary from apache.org > mod_perl.so binary from http://theoryx5.uwinnipeg.ca/ppms/x86/ (7 May 2005) > Perl from ac

Re: What Perl/Apache for mod_perl under Windows?

2005-05-09 Thread Markus Wichitill
Helmut Zeilinger wrote: Apache windows binary from apache.org mod_perl.so binary from http://theoryx5.uwinnipeg.ca/ppms/x86/ Perl from activestate 5.8.6.811 After a couple of requests apache crashes with "Parent: child process exited with status 3221225477 -- Restarting." I suppose, it is becau

What Perl/Apache for mod_perl under Windows?

2005-05-09 Thread Helmut Zeilinger
Hi, i am trying to run mod_perl under windows, using Apache/2.0.54 (Win32) mod_perl/1.999.24-dev Perl/v5.8.6 Apache windows binary from apache.org mod_perl.so binary from http://theoryx5.uwinnipeg.ca/ppms/x86/ (7 May 2005) Perl from activestate 5.8.6.811 After a couple of requests apache crashes

Re: Can't retrieve page I just created with LWP under mod_perl

2005-05-09 Thread Stas Bekman
Dan Horne wrote: I've written a small CGI::Application CMS that publishes content to flat files via. The file-type can be any that the designers decide, but generally it will be something that supports includes such as SSI or PHP. This is fine most of the time but occasionally I need to produce dyn

Re: old mod_perl (RC3) in FreeBSD 4.11

2005-05-09 Thread Philip M. Gollucci
Foo Ji-Haw wrote: As of today 1900 SGT, I did a ports cvsup on my FreeBSD to install a nice fresh setup of apache2+modperl2. Interestingly the ports collection shows RC3 still. I guess until the maintainer ([EMAIL PROTECTED]

old mod_perl (RC3) in FreeBSD 4.11

2005-05-09 Thread Foo Ji-Haw
As of today 1900 SGT, I did a ports cvsup on my FreeBSD to install a nice fresh setup of apache2+modperl2. Interestingly the ports collection shows RC3 still. I guess until the maintainer ([EMAIL PROTECTED] ) u