creating an instance of Apache2::RequestRec

2007-08-30 Thread bharanee rathna
hello folks, has anyone tried to create an instance of Apache2::RequestRec outside apache ? I'm not an xs expert, but if i understand correctly Apache2::RequestRec basically wraps the request_rec from apache2, therefore creating one should be initializing a struct with some params calling sv_set

Re: creating an instance of Apache2::RequestRec

2007-08-30 Thread bharanee rathna
t; > On 8/30/07, bharanee rathna <[EMAIL PROTECTED]> wrote: > > has anyone tried to create an instance of Apache2::RequestRec outside > > apache ? > > How could that work? And even if it could work, what good what it be? > This class is a Perl version of the C API to

Re: creating an instance of Apache2::RequestRec

2007-08-30 Thread bharanee rathna
You will need the "Apache2::RequestRec" object in order to be able to reuse the rich functionality supplied via this object." I'm not sure if the CommandServer example is relevant since it only works from inside apache2 On 8/31/07, Perrin Harkins <[EMAIL PROTECTED]&g

Re: creating an instance of Apache2::RequestRec

2007-08-30 Thread bharanee rathna
07, Perrin Harkins <[EMAIL PROTECTED]> wrote: > > On 8/30/07, bharanee rathna <[EMAIL PROTECTED]> wrote: > > It would work for the purpose of testing, mainly simulating a request > > without running apache like Apache::Test does currently. > > Apache::Test does it t

Re: -X and trapping kill?

2007-09-17 Thread bharanee rathna
Hi guys, this is a known issue reported at http://issues.apache.org/bugzilla/show_bug.cgi?id=38848 and not modperl related. On 9/18/07, Fred Moyer <[EMAIL PROTECTED]> wrote: > > Bill Moseley wrote: > > Must be Monday. Is there a problem with the -X switch and prefork? > > > > I'm using: > > > >

Re: -X and trapping kill?

2007-09-18 Thread bharanee rathna
yes, but AFAIK -X is a shortcut for -DONE_PROCESS. But then I may be wrong but a quick check now shows me that using -DONE_PROCESS, apache2 ignores SIGINT On 9/18/07, Philippe M. Chiasson <[EMAIL PROTECTED]> wrote: > > Bill Moseley wrote: > > Must be Monday. Is there a problem with the -X switch

Re: Perl section and request object

2007-09-19 Thread bharanee rathna
me thinks that PerlOptions +GlobalRequest should be inside your or section. http://perl.apache.org/docs/2.0/user/config/config.html#mod_perl_Directives_Argument_Types_and_Allowed_Location On 9/19/07, antoine7 <[EMAIL PROTECTED]> wrote: > > > Hello, > > I'm new to mod perl, I've setup an apac

Re: Problem with RequestRec and Headers

2007-09-23 Thread bharanee rathna
AFAIK Apache::Singleton works for MP2, also it does both per request and per process singletons. On 9/24/07, jk jk <[EMAIL PROTECTED]> wrote: > > I've been trying to use Apache::Singleton::Request under the assumption > that you're right about Class::Singleton being the crux of the issue. > Unfor

Re: Problem with RequestRec and Headers

2007-09-24 Thread bharanee rathna
eton > > If I install it anyway I get "[Sun Sep 23 15:09:49 2007] [error] Can't > locate Apache/RequestUtil.pm in @INC (@INC contains:.." > > Thanks. --JAK > > On 9/23/07, bharanee rathna <[EMAIL PROTECTED]> wrote: > > > > AFAIK Apache::Sin

Re: open and write a file with 777 permissions.

2007-09-25 Thread bharanee rathna
you need to do a umask(0) , try going through perldoc -f umask On 9/26/07, Tyler Bird <[EMAIL PROTECTED]> wrote: > > I was wondering if anyone knows offhand > how I can open and write to a file with 777 permissons. > > And possibly also set the owner to a specified owner string. > > I am reading

Re: Mod_Perl and MaxRequestsPerChild

2007-10-18 Thread bharanee rathna
Although mod_proxy is a nice module with many features, I would recommend something like pound doing the proxying & load balancing. It's more light and faster, plus you have the added advantage of keeping your webservers in a local network. If you want something with more features lookup squid,

Re: Fwd: MPM-safe mp2 Singleton Pattern?

2008-11-07 Thread bharanee rathna
> The simplest way is to put the object as a pnote: What Torsten said, but have a look at http://search.cpan.org/~miyagawa/Apache-Singleton-0.07/lib/Apache/Singleton.pm Apache::Singleton::Request is probably what you want.

Re: Fwd: MPM-safe mp2 Singleton Pattern?

2008-11-07 Thread bharanee rathna
> I couldn't get Apache::Singleton working with mp2 (used it before with no > problems with mp1). so I switched back to Class::Singelton ... *sigh*, 2 yr old bug report. Maybe someone should write to the author/maintainer and take ownership ? http://rt.cpan.org/Public/Bug/Display.html?id=19775 E