Re: advice needed: mod_perl reverse proxy

2005-05-10 Thread allan
Quoting Stas Bekman <[EMAIL PROTECTED]>: [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_

Seems like https problem !

2005-05-10 Thread Thakkar, Chirag
Title: Message Hi,   I try to connect to CyberSource using apache, perl, mod-perl, ssl. For connecting to CyberSource we use merchant id. On one setup with some specific set of rpms; we can see the merchant id in the Request but not in the Response. But the same code works on another setup.

Re: RC6 and Apache::DB

2005-05-10 Thread Frank Wiles
On Mon, 09 May 2005 22:41:51 -0400 Stas Bekman <[EMAIL PROTECTED]> wrote: > 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/

Re: advice needed: mod_perl reverse proxy

2005-05-10 Thread Stas Bekman
[EMAIL PROTECTED] wrote: [...] can anyone supply a simple example i then can check on our reverse proxy ? Try: t/response/TestApache/content_length_header.pm Though I haven't tried to call it from the filter, so may be Jeff's suggestion will work. Jeff's suggestion does indeed work. oddly enou

Running multiple instances of the same app with vhost's

2005-05-10 Thread Lawrence Waterhouse
Hello folks, This is for a HTML::Mason application but i believe its a problem with my mod_perl/apache configuration... I am trying to configure my apache/handler to run multiple instances of the same application (one for each of our client). Basicly I need the following: 1. each client use the

Re: [MP2] : REDIRECT_ERROR_NOTES not set on errordocument redirect

2005-05-10 Thread Mark
Stas Bekman wrote: Mark wrote: -8<-- Start Bug Report 8<-- 1. Problem Description: $ENV{REDIRECT_ERROR_NOTES} not working with MP2 Using latest everything (modperl 2 RC5). To illustrate, I simply configure Apache with an errordocument: ErrorDocument 500 /c

Re: Debugging memory allocation

2005-05-10 Thread Igor Chudov
--- Sam Tregar <[EMAIL PROTECTED]> 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-10 Thread Igor Chudov
I have a lot of code in a lot of places, and something like 2-3 hits per second. It is a relatively busy website. I cannot afford doing what was just suggested, I would prefer some indirect perl invocation at the appropriate place. LogHandler seems like such a place. i --- David Nicol <[EMAIL PR

Re: Debugging memory allocation

2005-05-10 Thread David Nicol
how about declaring something like sub LogMemoryUsage(){ open PIDLOG, ">>pidlog"; flock PIDLOG, LOCK_EX; print PIDLOG, "$$ $ENV{SCRIPT_NAME} ",`ps -p $$ -os` close PIDLOG; }; and then calling LogMemoryUsage() at the beginning (and end) of every routine that you suspect might have the

Re: Debugging memory allocation

2005-05-10 Thread Stas Bekman
Can you point me to some LogHandler example that works under the latest released mod_perl 2.0? http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlLogHandler -- __ Stas BekmanJAm_pH --> Just Another mod_perl Ha

Re: Debugging memory allocation

2005-05-10 Thread David Nicol
On 5/10/05, Igor Chudov <[EMAIL PROTECTED]> wrote: > LogHandler seems > like such a place. Undoubtably. But how do you get the memory usage? read /proc/$$/mem or something? there is not, AFAICTFRAQG (as far as I can tell from recollection and quick googling) a line noise variable for current memo

Re: Debugging memory allocation

2005-05-10 Thread Perrin Harkins
On Tue, 2005-05-10 at 15:59 -0500, David Nicol wrote: > Undoubtably. But how do you get the memory usage? read /proc/$$/mem or > something? That's what Apache::SizeLimit does, and it was as fast as Apache::GTopLimit the last time I checked it. - Perrin

Re: Debugging memory allocation

2005-05-10 Thread Igor Chudov
I already have a function to get memory usage, borrowed from Zpache::SizeLimit and modified. sub linux_memory_size { my($size, $resident, $share) = (0, 0, 0); my $file = "/proc/self/statm"; if (open my $fh, "<$file") { ($size, $resident, $share) = split /\s/, scalar <$fh>; close $

SessionTimeOut how to configure

2005-05-10 Thread raja agireddy
Hello, I have installed mod_perl, Apache AuthenSmb for the NT authentication on the UNIX server. I want to implement the time out feature, so that any user after 30 minutes of inactive session need to relogin. Any suggestions will be greatly appreciated. Regards, Raja

Re: Running multiple instances of the same app with vhost's

2005-05-10 Thread Perrin Harkins
On Tue, 2005-05-10 at 14:33 -0400, Lawrence Waterhouse wrote: > Here my current setup... I am really in need for advise on this one, this > setup don't seem to work for an unknown reason. How can you tell it's not working? What have you tried to debug it? - Perrin

Apache::Session not updating (writing)

2005-05-10 Thread Rick
I'm having problems with MasonX::Request::WithApacheSession (using Apache::Session::MySQL backend). The session is not being updated, so I can't save any data to it. I verified this by looking at the mysql logs. I am using Apache, mod_perl and HTML::Mason. I have tried setting AlwaysWrite on in htt

Re: Apache::Session not updating (writing)

2005-05-10 Thread Bart Simpson
--- Rick <[EMAIL PROTECTED]> wrote: > I'm having problems with > MasonX::Request::WithApacheSession (using > Apache::Session::MySQL backend). The session is not > being updated, so > I can't save any data to it. I verified this by > looking at the mysql > logs. Are you timestamping your session

Re: Apache::Session not updating (writing)

2005-05-10 Thread Gokul P. Nair
--- Bart Simpson <[EMAIL PROTECTED]> wrote: "Don't use mason though." I'm curious about your last statement about not using Mason, why do u say so? --- Bart Simpson <[EMAIL PROTECTED]> wrote: > > --- Rick <[EMAIL PROTECTED]> wrote: > > I'm having problems with > > MasonX::Request::WithApacheSes

Re: Apache::Session not updating (writing)

2005-05-10 Thread Bart Simpson
--- "Gokul P. Nair" <[EMAIL PROTECTED]> wrote: > --- Bart Simpson <[EMAIL PROTECTED]> wrote: > "Don't use mason though." > > I'm curious about your last statement about not > using > Mason, why do u say so? > > LOL -- I mean I , myself, do not use mason. I have nothing against Mason. Never ha

limiting subroutine run time

2005-05-10 Thread Igor Chudov
I am working on a system on algebra.com where anyone could define a math solver for a particular kind of problem. It could be defined either via a custom markup language (not interesting), or as a perl script. These user submitted perl scripts will be executed inside Safe.pm compartment. I hope th

Re: [MP2] : REDIRECT_ERROR_NOTES not set on errordocument redirect

2005-05-10 Thread Mark
Stas Bekman wrote: Mark wrote: -8<-- Start Bug Report 8<-- 1. Problem Description: $ENV{REDIRECT_ERROR_NOTES} not working with MP2 Using latest everything (modperl 2 RC5). To illustrate, I simply configure Apache with an errordocument: ErrorDocument 500 /c