Phase for controlling network input?

2001-09-26 Thread Bill McGonigle
I'm hoping this is possible with mod_perl, since I'm already familiar with it and fairly allergic to c, but can't seem to figure out the right phase. I've been seeing log files recently that point to a certain DDOS attack brewing on apache servers. I want to write a module that keeps a timer

Backticks as fast as XS

2001-09-26 Thread Matt Sergeant
Robin Berjon thought I should post this as a heads-up to anyone thinking what I thought: XS or pure perl code will always be faster than backticks or system() calls. Wrong. I spent some time converting some of our backtick programs to XS code here, and the result was absolutely zero difference

Re: Phase for controlling network input?

2001-09-26 Thread Simon Rosenthal
I'm not sure that any mod_perl handlers are dispatched until the whole request is received, so you may have to deal with this at the core Apache level. I think the following is your best bet (from http://httpd.apache.org/docs/mod/core.html#timeout ) TimeOut directive Syntax: TimeOut number

Re: Can't locate object method module via package Apache

2001-09-26 Thread Stas Bekman
[CC'ing mod_perl list] Jason Shaw wrote: Hi, I found the archive below, and am having the same problem. Mine occurs whenever I try to start Apache. I just want to know where I would put that fix that you posted below? Should I edit the DBI.pm file, or somewhere in my configuration script

Authentication

2001-09-26 Thread Ray and Lara Recendez
I am new with Perl and particularly mod_perl. I am trying to setup web authentication with the expiration period based on inactivity. Is there an easy to use already written module with documentation? If so, could someone please point me in the right direction. Thanks, Ray

RE: Backticks as fast as XS

2001-09-26 Thread Matt Sergeant
-Original Message- From: Doug MacEachern [mailto:[EMAIL PROTECTED]] On Wed, 26 Sep 2001, Matt Sergeant wrote: Robin Berjon thought I should post this as a heads-up to anyone thinking what I thought: XS or pure perl code will always be faster than backticks or system()

Re: Backticks as fast as XS

2001-09-26 Thread Doug MacEachern
On Wed, 26 Sep 2001, Matt Sergeant wrote: Robin Berjon thought I should post this as a heads-up to anyone thinking what I thought: XS or pure perl code will always be faster than backticks or system() calls. Wrong. matt your benchmark is severly flawed. for starters, your xs and external

Restricting cpu time for mod_perl scripts? AND Reevaluating perl scripts under mod_perl.

2001-09-26 Thread EXP
Hi I am currently using Apache::Resource to limit the maximum amount of ram the apache childs are allowed to use. However, I can't really use PERL_RLIMIT_CPU because it is kind of pointless to kill every apache child that reaches this limit. I need a way to restrict cpu time on a per script or

RE: Backticks as fast as XS

2001-09-26 Thread Doug MacEachern
On Wed, 26 Sep 2001, Matt Sergeant wrote: As does backticks, surely? If you can tell me a way to make the code faster, damn I'll do it as we have a *lot* of emails to process :-) maybe, i don't know in what way your code uses sv_catpv. and who knows what else. Nothing else. I detailed

Perl Scripting help

2001-09-26 Thread Matthew Blacklow
I am writing a script at the moment which among others things creates another process using the system call. What I need to do is capture the screen output of this process into a string variable so that it can latter be manipulaterd. ie. capture the STDOUT. Any help, suggestions or sample code

Re: Perl Scripting help

2001-09-26 Thread Ray Graham
You'll need to use the backticks instead of the system call. $output = `command`; To get each line of the output, you'll need to split off of \n. -Ray Graham

Re: Perl Scripting help

2001-09-26 Thread Ken Y. Clark
On Thu, 27 Sep 2001, Matthew Blacklow wrote: Date: Thu, 27 Sep 2001 09:22:41 +1000 From: Matthew Blacklow [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Perl Scripting help I am writing a script at the moment which among others things creates another process using the system call. What

problems building mod_perl with apache: cannot find -lperl

2001-09-26 Thread willow
Hi, I hope this is the right list. I can't seem to build apache with mod_perl. Is it just me? I must be dumm, or just a newbie. I eventually want ssl, php4, etc., but after problems developed, I went back to basics. I'm using apache_1.3.20 and mod_perl-1.25 from tarballs. I'm running debian.

Re: problems building mod_perl with apache: cannot find -lperl

2001-09-26 Thread Thomas Eibner
On Wed, Sep 26, 2001 at 05:39:26PM -0700, [EMAIL PROTECTED] wrote: Hi, I hope this is the right list. I can't seem to build apache with mod_perl. Is it just me? I must be dumm, or just a newbie. I eventually want ssl, php4, etc., but after problems developed, I went back to basics. I'm

Re: Perl Scripting help

2001-09-26 Thread Brian Reichert
On Thu, Sep 27, 2001 at 09:22:41AM +1000, Matthew Blacklow wrote: I am writing a script at the moment which among others things creates another process using the system call. What I need to do is capture the screen output of this process into a string variable so that it can latter be

Re: Authentication

2001-09-26 Thread clayton cottingham
Ray and Lara Recendez wrote: I am new with Perl and particularly mod_perl. I am trying to setup web authentication with the expiration period based on inactivity. Is there an easy to use already written module with documentation? If so, could someone please point me in the right direction.

LaBrea

2001-09-26 Thread Mithun Bhattacharya
Something to keep Code Red probes busy ?? http://www.hackbusters.net/LaBrea/

cvs commit: modperl-site sites.html

2001-09-26 Thread stas
stas01/09/26 10:01:24 Modified:.sites.html Log: - adding citysearch.com to the list of success sites - correcting some details for singleaheaven.com Revision ChangesPath 1.18 +13 -6 modperl-site/sites.html Index: sites.html

cvs commit: modperl-2.0/todo missing_old_features.txt

2001-09-26 Thread stas
stas01/09/26 01:15:32 Modified:todo missing_old_features.txt Log: - log the missing env MOD_PERL_TRACE support Revision ChangesPath 1.6 +2 -0 modperl-2.0/todo/missing_old_features.txt Index: missing_old_features.txt