Re: invoking sub/methods shortcut

2003-10-01 Thread Stas Bekman
[EMAIL PROTECTED] wrote: Can I do something like this? from $sth = getVUser($dbh, $u, $d); return $sth->rows(); to return (getVUser($dbh,$u,$d))->rows(); a move from java->perl ;) Please don't cross-post irrelevant to mod_perl questions in the future. Thank you. ___

invoking sub/methods shortcut

2003-10-01 Thread perl
Can I do something like this? from $sth = getVUser($dbh, $u, $d); return $sth->rows(); to return (getVUser($dbh,$u,$d))->rows(); a move from java->perl ;) thanks, -rkl

Re: [mp2] running make test as unpriveleged user

2003-10-01 Thread Stas Bekman
Haroon Rafique wrote: Yes, the patch fixes the failing tests/sandbox violations. Find attached. You get to break the 1.99_11-dev ice ;) Thanks, committed (with some more XXX noise, so we get this to polish later) SB> SB> Another alternative is to introduce a new directory for Apache-Test: SB> t

Re: [mp2] running make test as unpriveleged user

2003-10-01 Thread Haroon Rafique
On Today at 4:12pm, SB=>Stas Bekman <[EMAIL PROTECTED]> wrote: SB> SB> Sure, please find all the files that miss the end lines and post a SB> patch fixing them, which will gladly apply and try to remember to SB> keeping them in place in the future. Really its no big deal. Just one file which is

FAIL mod_perl-1.99_10 MSWin32-x86-multi-thread 4.0

2003-10-01 Thread DH
This distribution has been tested as part of the cpan-testers effort to test as many new uploads to CPAN as possible. See http://testers.cpan.org/ Please cc any replies to [EMAIL PROTECTED] to keep other test volunteers informed and to prevent any duplicate effort. -- E:\new\mod_perl-1.99_10>

Re: mod_perl 2: APR::URI scheme and path_info

2003-10-01 Thread Stas Bekman
Matisse Enzer wrote: my $uri = APR::URI->parse; I want to find out what the scheme (http, https) was for the current request. APR::URI->parse($r->pool, $r->uri)->scheme; I also want to find out (and maybe set) the path_info What's the right way to do this? $path_info = $r->path_info; $r->p

mod_perl 2: APR::URI scheme and path_info

2003-10-01 Thread Matisse Enzer
Title: mod_perl 2: APR::URI scheme and path_info     my $uri = APR::URI->parse; I want to find out what the scheme (http, https) was for the current request. I also want to find out (and maybe set) the path_info What's the right way to do this? --

Re: [Mason] Re: Apache::Session::File locks getting stuck

2003-10-01 Thread Perrin Harkins
On Wed, 2003-10-01 at 18:56, Dave Rolsky wrote: > On Wed, 1 Oct 2003, Javier Alvarado wrote: > > > 2) Make sure the session is untied after *every* request (i.e. even if > > a request is aborted, an error occurs in the middle, etc). Otherwise, > > when the next request tries to tie it it w

Re: [mp2] running make test as unpriveleged user

2003-10-01 Thread Stas Bekman
Haroon Rafique wrote: On Today at 2:42pm, SB=>Stas Bekman <[EMAIL PROTECTED]> wrote: SB> > Comments are welcome. And we really should have a newline at the end of SB> > ModPerl-Registry/t/conf/extra.conf.in SB> SB> certainly, but does it break anything? SB> Hi Stas, Doesn't break anything real

Re: Apache::Session::File locks getting stuck

2003-10-01 Thread Dave Rolsky
On Wed, 1 Oct 2003, Javier Alvarado wrote: > 2) Make sure the session is untied after *every* request (i.e. even if > a request is aborted, an error occurs in the middle, etc). Otherwise, > when the next request tries to tie it it will block. With MasonX::Request::WithApacheSession, this

Re: [mp2] running make test as unpriveleged user

2003-10-01 Thread Haroon Rafique
On Today at 2:42pm, SB=>Stas Bekman <[EMAIL PROTECTED]> wrote: SB> > Comments are welcome. And we really should have a newline at the end of SB> > ModPerl-Registry/t/conf/extra.conf.in SB> SB> certainly, but does it break anything? SB> Hi Stas, Doesn't break anything really, but when I was usi

Re: [mp2] running make test as unpriveleged user

2003-10-01 Thread Stas Bekman
Haroon Rafique wrote: Hi, Find attached (and inline) a patch for smoother running of "make test" when running as a non-privileged user. This issue came to light while running Gentoo Linux. The Gentoo package system "portage" has the ability to run as a non-root user while building packages. Some

[mp2] running make test as unpriveleged user

2003-10-01 Thread Haroon Rafique
Hi, Find attached (and inline) a patch for smoother running of "make test" when running as a non-privileged user. This issue came to light while running Gentoo Linux. The Gentoo package system "portage" has the ability to run as a non-root user while building packages. Some file locations were n

Re: Scope of Apache request object and Apache::Session scoping.

2003-10-01 Thread Perrin Harkins
On Wed, 2003-10-01 at 16:23, Matisse Enzer wrote: > I'm sticking a reference to the session hash in the Apache request object: > > $r->pnotes($auth_name => \%session ); > > This is under mod_perl 2 > > I'm doing this in the belief that the request object goes out of > scope when Apache fini

Re: Scope of Apache request object and Apache::Session scoping.

2003-10-01 Thread Praveen Ray
Good Question. Does $r get freed after every request? In any case, best is to install a PerlCleanupHandler and set untie %$session in it. On Wed, 2003-10-01 at 16:23, Matisse Enzer wrote: > In answer to another question Perrin Harkins <[EMAIL PROTECTED]> wrote: > > > I suggest you go over the co

Re: Apache::Session::File locks getting stuck

2003-10-01 Thread Javier Alvarado
I don't know for sure what may be causing the lockups, but I can think of two things to try: 1) Use Transaction => 1 when tieing your session. 2) Make sure the session is untied after *every* request (i.e. even if a request is aborted, an error occurs in the middle, etc). Otherwise, when t

Scope of Apache request object and Apache::Session scoping.

2003-10-01 Thread Matisse Enzer
In answer to another question Perrin Harkins <[EMAIL PROTECTED]> wrote: I suggest you go over the code where you use the session hash very carefully and make sure it goes out of scope at the end. I'm sticking a reference to the session hash in the Apache request object: $r->pnotes($auth_name

Re: Apache::Session::File locks getting stuck

2003-10-01 Thread Perrin Harkins
On Wed, 2003-10-01 at 15:53, Dan McCormick wrote: > Each day, a few dozen httpds get stuck waiting for locks on the > Apache::Session files. ... > I've set things up per the MasonX::Request::WithApacheSession docs and > sample files, and I'm not doing anything particularly extraordinary with > the

Apache::Session::File locks getting stuck

2003-10-01 Thread Dan McCormick
Hi, I have an Apache 1.3.27/modperl 1.27 site using HTML::Mason 1.20 with MasonX::Request::WithApacheSession 0.23 on a Redhat 7.3 system. The site gets about 5,000 hits/day. Each day, a few dozen httpds get stuck waiting for locks on the Apache::Session files. An lsof on the Apache pids reports

Re: Strange (13)permission denied in 1.28

2003-10-01 Thread Geoffrey Young
Matthew Hodgson wrote: Hi all, I just upgraded from Apache 1.27/mod_perl 1.27 to Apache 1.28/mod_perl 1.28 and am noticing some weird behaviour on Apache::Registry scripts - executing a Registry script ( /webroot/www.domain.com/perl/test.pl ) by calling a URL such as: http://www.domain.com/perl/

Strange (13)permission denied in 1.28

2003-10-01 Thread Matthew Hodgson
Hi all, I just upgraded from Apache 1.27/mod_perl 1.27 to Apache 1.28/mod_perl 1.28 and am noticing some weird behaviour on Apache::Registry scripts - executing a Registry script ( /webroot/www.domain.com/perl/test.pl ) by calling a URL such as: http://www.domain.com/perl/test.pl/movies/image/123

mp2: brief success story

2003-10-01 Thread Carl Brewer
Just for the archives, I'm using mp2 (usually fairly recent CVS pulls) in production on a number of sites I'm hosting on a NetBSD server. These include my cycling coaching website : www.aboc.com.au which uses Template::Toolkit, mp2, my own authentication stuff (not a handler, yet :) ) and MySQL as