Re: mod_perl, shared memory and solaris

2005-09-20 Thread Carl Johnstone
Any advice on memory use on Solaris is appreciated Take a look at: http://people.ee.ethz.ch/~oetiker/tobjour/2003-02-12-09-00-f-1.html There's some useful information, including a chunk covering what you're after. Specifically try: pmap -x PID the private/anon column shows the amount

Re: Child Exit error on MP2

2005-09-20 Thread Frank Wiles
On Mon, 19 Sep 2005 20:05:31 -0500 Boysenberry Payne [EMAIL PROTECTED] wrote: When I get to the following line the debugger hangs: my $apr = APR::Request::Apache2-handle( $r ); I believe that should be written like this: my $apr = Apache2::Request-new( $r_con ); Did you find the

Re: Child Exit error on MP2

2005-09-20 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frank Wiles wrote: On Mon, 19 Sep 2005 20:05:31 -0500 Boysenberry Payne [EMAIL PROTECTED] wrote: When I get to the following line the debugger hangs: my $apr = APR::Request::Apache2-handle( $r ); I believe that should be written like

Re: Child Exit error on MP2

2005-09-20 Thread Frank Wiles
On Tue, 20 Sep 2005 15:34:44 +0200 Tom Schindl [EMAIL PROTECTED] wrote: APR::* is the prefered namespace/api for libapreq2. APR::Request::Apache2-handle($r) is the right syntax as far as I known. Well Apache2::Request is what is installed from libapreq2, but if you look into

Re: Child Exit error on MP2

2005-09-20 Thread Philip M. Gollucci
my $r = shift; my $r_con = $r-connection; my $apr = APR::Request::Apache2-handle( $r_con ); =head2 handle APR::Request::Apache2-handle($r) Creates an APR::Request::Apache2 object. The argument C $r is an Apache2::RequestRec object (from mod_perl2). You're passing a

Re: [mp2] $| doesn't work with mod_perl

2005-09-20 Thread Philip M. Gollucci
Alexander Charbonnet wrote: Are you sure mod_deflate isn't one of your active Apache filters? mod_deflate will not output until its buffer is full, $| notwithstanding. I tore my hair out trying to work around it, and ended up writing my own compression filter. But if you don't need

Re: [Maybe Spam] Re: mod_perl, shared memory and solaris

2005-09-20 Thread dan . horne
Any advice on memory use on Solaris is appreciated Take a look at: http://people.ee.ethz.ch/~oetiker/tobjour/2003-02-12-09-00-f-1.html There's some useful information, including a chunk covering what you're after. Specifically try: pmap -x PID the private/anon column shows the amount of

how to tell Apache::Test which apache to use?

2005-09-20 Thread Dave Rolsky
I have both Apache1 2 with mp1 2 on my system (for testing). By default, Apache::Test seems to find and use Apache1, which is fine, but I need to figure out how to tell it to run its tests with Apache2 as well, since this is for a module that I want to work with both mod_perl versions.

Re: how to tell Apache::Test which apache to use?

2005-09-20 Thread Philip M. Gollucci
Dave Rolsky wrote: I have both Apache1 2 with mp1 2 on my system (for testing). By default, Apache::Test seems to find and use Apache1, which is fine, but I need to figure out how to tell it to run its tests with Apache2 as well, since this is for a module that I want to work with both

Re: how to tell Apache::Test which apache to use?

2005-09-20 Thread Geoffrey Young
Philip M. Gollucci wrote: Dave Rolsky wrote: I have both Apache1 2 with mp1 2 on my system (for testing). By default, Apache::Test seems to find and use Apache1, which is fine, but I need to figure out how to tell it to run its tests with Apache2 as well, since this is for a module

apache crash with MP2 Win32

2005-09-20 Thread Matthew Darwin
Hi all, Would anyone know where to start looking about how to track down the source of this following line in error.log: Apache2::Filter: (620018) APR does not understand this error code at -e line 0 When this is printed, Apache stops handling requests and restarts. We can reproduce this

Configuration Question

2005-09-20 Thread Scott Wessels
Hello, I am trying to get the Location example from http://perl.apache.org/docs/2.0/user/config/config.html#C_Parent_ to work in the server context, but have thus far been unsuccessful. Is it possible to have a scenario where you could modify @INC similar to

Strange $r-print($buffer)/Content-Disposition problem

2005-09-20 Thread Christopher Stanton
Fedora Core 4 httpd-2.0.54-10 mod_perl-2.0.0-0.rc5.3 I have an nph mod_perl script which will send a JPEG to a client either inline or as an attachment (if a param is passed). If it is an attachment, I set the Content-Disposition to: Content-Disposition: attachment;

Re: mp2 crashing Apache server

2005-09-20 Thread Aliet Santiesteban Sifontes
Here my minimal script that cause this to happen: File Listing.pl - use DBI; use CGI; use strict; use diagnostics; use CGI::Carp qw(fatalsToBrowser); # Let's require session stuff use lib::SessionUtil; my $cgi; $cgi = lib::SessionUtil::Get_CGI_Object(); my

Re: Strange $r-print($buffer)/Content-Disposition problem

2005-09-20 Thread Larry Leszczynski
Hi Christopher - I don't know if it's a typo but this: $write_buffer .= \r\n . $jpeg . \r\n\r\n; $r-print($write_buffer); is not the same as this: $r-print($write_buffer); $r-print($jpeg); $r-print(\r\n\r\n); since the latter does not insert \r\n between $write_buffer and $jpeg...

Re: Strange $r-print($buffer)/Content-Disposition problem

2005-09-20 Thread Christopher Stanton
In the second example I have already appended \r\n to the write buffer. So it really is: $write_buffer .= \r\n; $r-print($write_buffer); $r-print($jpeg); $r-print(\r\n\r\n); I try to write the same data to the client. In one case I write it as one big buffer, in the other case I write the

Creating multiple Win32::OLE instances (Outlook.Application)

2005-09-20 Thread Foo Ji-Haw
Hi all, I am trying to see if mp2 is able to support modules that create Win32::OLE objects, process it, then destroy them. I have a very simple script to try this task: use strict;use warnings;use Apache2::Const -compile = qw(FORBIDDEN OK);use Apache2::RequestRec;use