Re: duplicate sockets ? mod-perl 2.0.2, apache 2.2

2007-09-13 Thread Perrin Harkins
On 9/13/07, André Warnier <[EMAIL PROTECTED]> wrote: > In summary, the problem is that in the authen module I open a tcp > connection to an external server *once*, but the server sees *two* > connections being opened. Any chance you are running that code during startup, before the fork happens? -

duplicate sockets ? mod-perl 2.0.2, apache 2.2

2007-09-13 Thread André Warnier
Hi List. I have a puzzling problem in a custom PerlAuthenHandler module. I have checked the documentation, and the mod-perl mailing lists as far as a year back without finding anything relevant. I cannot believe something this simple and this big would not have been found out yet by someone els

Re: intermittent import errror from Apache2::RequestUtil

2007-09-13 Thread Geoffrey Young
> > SD (sure does) :) fwiw, the "don't export anything" syntax (that is, the empty list) will actually save you a bit of memory, as nothing will be exported into the current namespace. that's why you see that syntax all over the mod_perl docs as a best practice. > > Out of curiosity, why wo

Re: intermittent import errror from Apache2::RequestUtil

2007-09-13 Thread Charlie Katz
On Thu September 13 2007 1:35:13 pm Geoffrey Young wrote: > the only reason to use that syntax would be so that perl knows which > method to call when you use document_root() by itself without a class or > package qualifier. which, of course, is quite meaningless, as you need > a request object to

Re: intermittent import errror from Apache2::RequestUtil

2007-09-13 Thread Geoffrey Young
Charlie Katz wrote: > Hi, > > After some recent development work that included installing some new modules, > I'm suddenly seeing an intermittent import error: > > "document_root" is not exported by the Apache2::RequestUtil module > > This comes of course from the line > >use Apache2::

intermittent import errror from Apache2::RequestUtil

2007-09-13 Thread Charlie Katz
Hi, After some recent development work that included installing some new modules, I'm suddenly seeing an intermittent import error: "document_root" is not exported by the Apache2::RequestUtil module This comes of course from the line use Apache2::RequestUtil 'document_root'; which appear

Re: Problem with perl-status memory usage

2007-09-13 Thread Perrin Harkins
On 9/13/07, Richard Jones <[EMAIL PROTECTED]> wrote: > /opt/lampp/lib/perl5/site_perl/5.8.7/Devel/Symdump.pm Ok, the next thing to try is a permissions check. Become the user who you run your web server as (often "nobody", but I don't know what XAMPP does) and try to read this file. - Perrin

Re: Problem with perl-status memory usage

2007-09-13 Thread Richard Jones
Perrin Harkins wrote: On 9/12/07, Richard Jones <[EMAIL PROTECTED]> wrote: /opt/lampp/bin/perl -e 'print join "\n", @INC': No, print @INC from mod_perl, not from the command line. Sorry, yes that was silly. From an equivalent script inside the /perl directory (which is set in perl.conf to

Re: Problem with perl-status memory usage

2007-09-13 Thread Perrin Harkins
On 9/12/07, Richard Jones <[EMAIL PROTECTED]> wrote: > /opt/lampp/bin/perl -e 'print join "\n", @INC': No, print @INC from mod_perl, not from the command line. - Perrin

Re: Memory usage

2007-09-13 Thread Aaron Trevena
Hi Will, How many keys will your hashes contain? The main memory wastage with hashes isn't due to the size of what you keep in them but the number of keys. If you are using integers as keys, why not just use an array? Bare in mind that the 'hashspace' is shared between your hashes, so if you ha