APR::Socket SSL

2008-04-02 Thread Mike Cardwell
Hi, I'm writing a PerlProcessConnectionHandler. It starts: sub handler { my $c = shift; my $sock = $c->client_socket; $sock is an instance of APR::Socket. The problem is that the connection is using SSL and I need to be able to read/write the unencrypted socket stream. If $sock was an i

Re: [mp2] A better way to set the Expire header

2005-06-24 Thread Mike Cardwell
* on the Thu, Jun 23, 2005 at 07:43:08AM -0400, Geoffrey Young wrote: > intelligently worrying about the browser cache will help your performance a > great deal. there's an entire section in the perl.apache.org docs about it. This is the logic I use. It may help someone. Where $cache is the num

Problem with taint

2005-05-22 Thread Mike Cardwell
Hi, I installed the new release of ModPerl2 today. I've not used any of the betas previously so am not sure if the problem is specific to this version or not. In my PerlResponseHandler I have the following code: sub handler { my $r = shift; my( $path ) = $r->filename()=~/^(.*)$/; eval{ r

Problem installing Apache::Status for mp1 from cpan

2005-04-10 Thread Mike Cardwell
Hi, I'm using mod_perl 1 on a Debian Sarge system. I just went to install Apache::Status with a: perl -MCPAN -e 'install Apache::Status' Here's what I got: = Reading Makefile.PL args from @ARGV mod_perl/1.29 installation detect

Problem installing Apache::Status for mp1 from cpan

2005-04-07 Thread Mike Cardwell
Hi, I'm using mod_perl 1 on a Debian Sarge system. I just went to install Apache::Status with a: perl -MCPAN -e 'install Apache::Status' Here's what I got: = Reading Makefile.PL args from @ARGV mod_perl/1.29 installation detected

Re: Tar process not dying after user hits "stop"

2004-12-13 Thread Mike Cardwell
On Sun, 12 Dec 2004, Stas Bekman wrote: # Get the content-length: my( $command ) = "/bin/tar -c -h -f /dev/null --totals the_directory 2>&1"=~/^(.+)$/; `$command` =~ /Total bytes written: (\d+)/gsm; You probably better off not using an external process, but http://search.cpan.org/dist/Archive-Tar/

Tar process not dying after user hits "stop"

2004-12-12 Thread Mike Cardwell
Hi people, I'm using: Apache/1.3.33 mod_perl/1.29 On a Debian Sarge system. The code I'm having problems with is quite long, so I've written a cut down version. In my virtual host block I have something along the lines of: SetHandler perl-script PerlHandler My::Handler Basically, y