Re: Apache::Request and memory

2000-06-23 Thread Matt Sergeant
On Thu, 22 Jun 2000, Jim Winstead wrote: Attached is a patch to libapreq that addresses this problem. Question for Doug, Can we get libapreq 0.32 out any time soon? There are some pretty nasty bugs in 0.31 that I'm waiting to get fixed. (the null cookies problem, this problem, the form

Re: using a module to contain settings.

2000-06-23 Thread Stas Bekman
On Thu, 22 Jun 2000, Scott Alexander wrote: I'm working on creating a site that is completely done in mod perl. The area that I'm running into problems with is using a single module to store configuration information. ie where images are stored. oracle settings, color codes etc. All the

Apache does't behave well with mod_perl

2000-06-23 Thread Jakub Vosahlo
Hello; I am in big troubles compiling mod_perl 1.23 with apache 1.3.12 on SuSE 6.4. I have tried to compile mod_perl statically into httpd using axps. I have received httpd file much bigger than an "empty" one, but httpd didn't know anything about mod_perl directives inside httpd.conf (it

RE: MaxChildRequests and modperl - issue

2000-06-23 Thread Craig Vincent
Any easy fixes to this? am I the first to find this? Am i missing something obvious? Perhaps having my own ChildRequest counter and dieing myself, but more randomly, is a better way? If you're using mod_perl why not use the Apache::SizeLimit module instead of the MaxChildRequests. AFAIK the

Re: using a module to contain settings.

2000-06-23 Thread Peter Schoenster
- Original Message - From: Scott Alexander [EMAIL PROTECTED] The area that I'm running into problems with is using a single module to store configuration information. ie where images are stored. oracle settings, color codes etc. All the settings that are valid accross the entire

***JOB at idealab!***

2000-06-23 Thread josh schwartz
idealab! creates, launches and operates Internet businesses. Founded in March 1996, idealab! currently has approximately 50 businesses in various stages of development. In addition to capital, idealab! provides a full range of resources to infuse startup companies with the development strategies

Re: MaxChildRequests and modperl - issue

2000-06-23 Thread David Hodgkinson
Justin [EMAIL PROTECTED] writes: What I think happens is the children die after their last request, and apache does not kick off a new child straight away.. MinFree is set to 2 .. as 12 becomes 11 becomes 10 becomes 9, my backend is getting less and less powerful and more and more swamped.

[advocacy] FUD spreading by velocigen fan

2000-06-23 Thread Stas Bekman
In the article "Up to Speed with VelociGen" located http://www.webtechniques.com/archives/2000/05/infrrevu/ Brian Wilson tries to compare Velocigen with mod_perl, unfortunately gives lots of FUD for mod_perl instead of having a true comparison. For those who don't know FUD is an abbreviation

[XOT] doesn't it supported?

2000-06-23 Thread Kenneth Lee
(XOT: eXtremely OT) perl complains about variable method calls ($obj-$meth) when I move from 5.6.0 back to 5.00503, it says syntax error near "$meth". i think this is supported at the very beginning. did i missed sth? kenneth

[advocacy] writing articles

2000-06-23 Thread Stas Bekman
Folks, if you think that you can write a few articles about mod_perl please approach one of the many online magazines about web technology, linux, unix (ms?) and what not, and offer to write about it. All you have to do is to go to the site, find an email of the publisher and offer yourself,

Re: MaxChildRequests and modperl - issue

2000-06-23 Thread Stas Bekman
On 23 Jun 2000, David Hodgkinson wrote: Justin [EMAIL PROTECTED] writes: What I think happens is the children die after their last request, and apache does not kick off a new child straight away.. MinFree is set to 2 .. as 12 becomes 11 becomes 10 becomes 9, my backend is getting

RE: search engine for the Guide

2000-06-23 Thread Vladislav Safronov
Hi, Try http://www.comptek.ru/yandex/YandexFree.html search engine for web servers with highlighting searched words... -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 04, 2000 2:10 PM To: Matt Sergeant Cc: mod_perl list Subject: Re: search

Re: MaxChildRequests and modperl - issue

2000-06-23 Thread David Hodgkinson
Stas Bekman [EMAIL PROTECTED] writes: On 23 Jun 2000, David Hodgkinson wrote: Justin [EMAIL PROTECTED] writes: What I think happens is the children die after their last request, and apache does not kick off a new child straight away.. MinFree is set to 2 .. as 12 becomes 11

Re: MaxChildRequests and modperl - issue

2000-06-23 Thread Stas Bekman
On 23 Jun 2000, David Hodgkinson wrote: Stas Bekman [EMAIL PROTECTED] writes: On 23 Jun 2000, David Hodgkinson wrote: Justin [EMAIL PROTECTED] writes: What I think happens is the children die after their last request, and apache does not kick off a new child straight

RE: search engine for the Guide

2000-06-23 Thread Stas Bekman
On Fri, 23 Jun 2000, Vladislav Safronov wrote: Hi, Try http://www.comptek.ru/yandex/YandexFree.html search engine for web servers with highlighting searched words... Heh, it helps when you know Russian and have the font installed :) Oh, I see the English link:

Re: [advocacy] FUD spreading by velocigen fan

2000-06-23 Thread Matt Sergeant
On Fri, 23 Jun 2000, Stas Bekman wrote: In the article "Up to Speed with VelociGen" located http://www.webtechniques.com/archives/2000/05/infrrevu/ Brian Wilson tries to compare Velocigen with mod_perl, unfortunately gives lots of FUD for mod_perl instead of having a true comparison. I

Re: MaxChildRequests and modperl - issue

2000-06-23 Thread David Hodgkinson
Stas Bekman [EMAIL PROTECTED] writes: I think it doesn't matter whether it's a script or a module. So if startup.pl contains: use CGI ; use DBI ; use My::Application ; Then there's no gain? -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The

Totally annoyed at IE ( Cookie oddity )

2000-06-23 Thread John Armstrong
Trying to get IE to take a cookie in either an error header or a standard header has just been driving me insane tonight. After every possible iteration I ended up with the following and a redirect. Note that $r-header_out() worked without a redirect as well. $r-err_header_out('Set-cookie' =

RE: Totally annoyed at IE ( Cookie oddity )

2000-06-23 Thread Geoffrey Young
I just tried the following registry script with NS4.7 and IE5 (both win) and it worked just fine... #!/usr/bin/perl use strict; my $r = shift; $r-err_headers_out-add('Set-cookie' = 'cookie1=value1; domain=.laserlink.net'); $r-err_headers_out-add('Set-cookie' = 'cookie2=value2;

Re: my param

2000-06-23 Thread Peter Haworth
How should I correctly make "Param" assignments availble to function_2 and NOT to function_1 ??? #--- sub function_1 { blah blah } sub function_2 { my @array = param('This_Param'); foreach (@array) { my @{$_} = param($_); # ASSIGNMENT IN

RE: Highly optimized mod_perl ?

2000-06-23 Thread pvlad
Well, with little knowledge I have about mod_perl if sys admin tells you that mod_perl slows down the system, before making changes to the program you should have at least the following: a) Memory utilization numbers (sorted by a process) b) CPU utilization numbers (sorted by a process) c)

Re: MaxChildRequests and modperl - issue

2000-06-23 Thread Vivek Khera
"J" == Justin [EMAIL PROTECTED] writes: J and apache does not kick off a new child straight away.. MinFree is J set to 2 .. as 12 becomes 11 becomes 10 becomes 9, my backend is J getting less and less powerful and more and more swamped. When Make your min-free servers higher, and set max-free

Re: MaxChildRequests and modperl - issue

2000-06-23 Thread Vivek Khera
"DH" == David Hodgkinson [EMAIL PROTECTED] writes: DH If you take a large script, throw it at Apache::Registry, then you'll DH be compiling the script every time the a diaghter respawns. No, it doesn't happen when the child process is "spawned" (what is this, OS/2? We "fork" around here!)

[OT] Re: ***JOB at idealab!***

2000-06-23 Thread Balazs Rauznitz
On Thu, 22 Jun 2000, josh schwartz wrote: [snip] In addition, idealab! provides advice on strategy, branding and corporate structure. idealab! public companies include GoTo.com, eToys, ^^ Here we go again ;))

Simple program _setting_ REMOTE_ADDR

2000-06-23 Thread Steve van der Burg
In order to get a certain buggy, poorly-designed application from a well-known vendor to maintain its sessions in the face of the user's IP address changing (vendor doesn't understand that addresses may change between requests), I'd like to have Apache lie to the vendor's canned CGI app about

Re: Simple program _setting_ REMOTE_ADDR

2000-06-23 Thread Vivek Khera
"SvdB" == Steve van der Burg [EMAIL PROTECTED] writes: SvdB That is, I'd like to set REMOTE_ADDR like so: SvdB Location /cgi-bin/VENDOR SvdB # Feed vendor's crappy CGI code a fake address that won't change: SvdB PerlSetEnv REMOTE_ADDR 1.2.3.4 SvdB /Location But is /cgi-bin running under Perl?

Re: [OT] Re: ***JOB at idealab!***

2000-06-23 Thread Jim Winstead
On Jun 23, Balazs Rauznitz wrote: On Thu, 22 Jun 2000, josh schwartz wrote: [snip] In addition, idealab! provides advice on strategy, branding and corporate structure. idealab! public companies include GoTo.com, eToys,

Re: [advocacy] writing articles

2000-06-23 Thread Kevin Reichard
To follow up: Feel free to contact me at Apache Today (http://www.apachetoday.com) with any article ideas. Stas has contributed to the site, and we're always looking for more articles from the community. Plus, we do pay $. ;) --Kevin Reichard Stas Bekman wrote: Folks, if you think that you can

Re: [advocacy] writing articles

2000-06-23 Thread Vivek Khera
"KR" == Kevin Reichard [EMAIL PROTECTED] writes: KR Plus, we do pay $. ;) So I guess it makes sense to make your articles as many lines long as possible in order to maximize the value of $. ;-) -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vivek Khera, Ph.D.

Re: Simple program _setting_ REMOTE_ADDR

2000-06-23 Thread Steve van der Burg
Vivek Khera [EMAIL PROTECTED] wrote: "SvdB" == Steve van der Burg [EMAIL PROTECTED] wrote: SvdB That is, I'd like to set REMOTE_ADDR like so: SvdB Location /cgi-bin/VENDOR SvdB # Feed vendor's crappy CGI code a fake address that won't change: SvdB PerlSetEnv REMOTE_ADDR 1.2.3.4 SvdB /Location

Re: Simple program _setting_ REMOTE_ADDR

2000-06-23 Thread Vivek Khera
"SvdB" == Steve van der Burg [EMAIL PROTECTED] writes: SvdB I agree. How a major vendor with lots of staff and billions of SvdB dollars can get the basics wrong, I don't know. Ever used a MS product? ;-) Like that but work-around earlier today for Apache::Request to work around a MIME

Re: [advocacy] writing articles

2000-06-23 Thread Gunther Birznieks
They usually pay by the word rather than the line though. So it makes sense to say things several times but using different mechanisms. You know, kind of like going over an idea again but with a slightly different twist. Sometimes you can liken this to using different wording to discuss the

Re: Simple program _setting_ REMOTE_ADDR - SOLUTION

2000-06-23 Thread Steve van der Burg
Like that but work-around earlier today for Apache::Request to work around a MIME formatting but in IE on the Mac. Lame. Taking your remote_ip hint, and reading the Eagle a bit more closely, I came up with this: In httpd.conf: Location /cgi-bin/VENDOR PerlAccessHandler LHSC::FakeRemoteIP

maintaing global variable in PerlLogHandler

2000-06-23 Thread Jim Sproull
Hi All, I'm currently using mod_usertrack to maintain a session id for each request, then am logging this with my own perl Log handler. This is all in and working fine (thanks to a couple members of this list - Jacob Davies and Ian Kallen - thanks guys!). Unfortunately, since the cookie is

Re: maintaing global variable in PerlLogHandler

2000-06-23 Thread Jim Winstead
On Jun 23, Jim Sproull wrote: This all works fine. However, the get_sessionid and set_sessionid are using a dbm file, which is locked and unlocked during each request. (I know, I know). Obviously, this is a lot more load that is necessary. I tried using a simple global variable (defined

Re: Simple program _setting_ REMOTE_ADDR - SOLUTION

2000-06-23 Thread Dan Rench
On Fri, 23 Jun 2000, Steve van der Burg wrote: Taking your remote_ip hint, and reading the Eagle a bit more closely, I came up with this: In httpd.conf: Location /cgi-bin/VENDOR PerlAccessHandler LHSC::FakeRemoteIP /Location Why an Access handler? I realize it works, but a more

Re: ErrorDocument, logging and error-notes question

2000-06-23 Thread Tom Mornini
On Thu, 22 Jun 2000, Jeff Macdonald wrote: My thinking is that $error would contain the error recorded in the error_log file. Instead $error is empty. Any thoughts? This works in very current versions of mod_perl. What are you running? -- -- Tom Mornini -- InfoMania Printing and Prepress

is PerlAddVar working?

2000-06-23 Thread Geoffrey Young
hi all... I've been trying all morning to access PerlAddVar variables as expected (see http://marc.theaimsgroup.com/?l=apache-modperlm=95718409824646w=2 and forward) I'm not sure if anyone tested Doug's patch (http://marc.theaimsgroup.com/?l=apache-modperlm=95742001627308w=2) or

Re: Simple program _setting_ REMOTE_ADDR - SOLUTION

2000-06-23 Thread Steve van der Burg
In httpd.conf: Location /cgi-bin/VENDOR PerlAccessHandler LHSC::FakeRemoteIP /Location Why an Access handler? I realize it works, but a more appropriate phase would be PerlFixupHandler, since you aren't doing any access control in your module. A couple other nitpicky points: you probably

RE: Simple program _setting_ REMOTE_ADDR - SOLUTION

2000-06-23 Thread Geoffrey Young
-Original Message- From: Dan Rench [mailto:[EMAIL PROTECTED]] Sent: Friday, June 23, 2000 12:33 PM To: Steve van der Burg Cc: [EMAIL PROTECTED] Subject: Re: Simple program _setting_ REMOTE_ADDR - SOLUTION On Fri, 23 Jun 2000, Steve van der Burg wrote: Taking your

Caching Net::LDAP connections

2000-06-23 Thread Yann Ramin
Hi, I've been using Net::LDAP in a mod_perl/Apache server for awhile and I have a question. What would I need to do to cache the Net::LDAP handler/connection, like Apache::DBI? Net::LDAP is not something I would consider "blazingly fast," and opening a new LDAP connection and binding on a

Re: using a module to contain settings.

2000-06-23 Thread Perrin Harkins
On Fri, 23 Jun 2000, Scott Alexander wrote: package Mf7::Globals; use strict; use vars qw($VERSION); my ( $imgserver, ); $VERSION = '0.01'; sub Initialize_globals { $imgserver = 'http://www.musiciansfriend.com'; } 1; Okay, this is an easy one. You are declaring

Re: ErrorDocument, logging and error-notes question

2000-06-23 Thread Tom Mornini
On Fri, 23 Jun 2000, Jeff Macdonald wrote: Tom Mornini wrote: On Thu, 22 Jun 2000, Jeff Macdonald wrote: My thinking is that $error would contain the error recorded in the error_log file. Instead $error is empty. Any thoughts? This works in very current versions of

Re: using a module to contain settings.

2000-06-23 Thread Scott Alexander
On 22 Jun 2000, at 17:51, Perrin Harkins wrote: On Thu, 22 Jun 2000, Scott Alexander wrote: I then have an Initialize_globals function that I run to reset all the variables at the begining of a request. Why would you reset all of your configuration globals at the beginning of a request?

Re: using a module to contain settings.

2000-06-23 Thread Craig McLane
You could also export the variables (in which case @EXPORT_OK is preferable to @EXPORT). It still needs to be a global variable, but you won't need to refer to it with a fully qualified name. Craig On Fri, 23 Jun 2000, Perrin Harkins wrote: On Fri, 23 Jun 2000, Scott Alexander wrote:

Re: Caching Net::LDAP connections

2000-06-23 Thread Perrin Harkins
On Fri, 23 Jun 2000, Yann Ramin wrote: I've been using Net::LDAP in a mod_perl/Apache server for awhile and I have a question. What would I need to do to cache the Net::LDAP handler/connection, like Apache::DBI? You could start with something like this: use vars qw($ldap); $ldap ||=

Re: Apache does't behave well with mod_perl

2000-06-23 Thread Perrin Harkins
On Fri, 23 Jun 2000, Jakub Vosahlo wrote: I have tried to compile mod_perl statically into httpd using axps. I have received httpd file much bigger than an "empty" one, but httpd didn't know anything about mod_perl directives inside httpd.conf (it complained about not loaded shared module,

[OT]Centralized Signal Handling

2000-06-23 Thread Paul
Hi, all. I've started writing a module which I hope to be able to release to CPAN, and would welcome any input. The inspiration for this module was an attempt to prevent problems that might arise from modules overwriting each other's signal handlers *without_even_knowing*. (I know it would be

Apache::Request fails for Solaris 2.7/Apache 1.3.12/mod_perl 1.24/perl 5.6?

2000-06-23 Thread Eamon Daly
Subject says it all, really. I've tried building apache+mod_perl half a dozen ways, with CFLAGS and without, with DSO and with APXS. I've even tried recompiling perl 5.6 with -Ubincompat5005 and -Uuselargefiles. Test 2 always seems to fail; test 1 fails only sometimes. Any suggestions? Any other

Re: followup to MaxChildRequests question ;-(

2000-06-23 Thread Justin
On Fri, Jun 23, 2000 at 09:54:49AM -0400, Vivek Khera wrote: "J" == Justin [EMAIL PROTECTED] writes: J Its still worth stating for the purposes of getting into the J modperl archive at least, that MaxChildRequests is to be avoided J for modperl backend setups. I disagree. You just

Re: using a module to contain settings.

2000-06-23 Thread Scott Alexander
On 23 Jun 2000, at 13:27, Perrin Harkins wrote: On Fri, 23 Jun 2000, Scott Alexander wrote: Okay, this is an easy one. You are declaring $imgserver as a lexical (my) variable. When Perl finishes executing this file, lexical variables go out of scope. You can fix this by making it a real

Re: Apache::Request and memory

2000-06-23 Thread Jeremy Howard
Apache::Request eats up memory during a file upload Attached is a patch to libapreq that addresses this problem. ... Thanks for this, Jim. Unfortunately, I'm having some problems with the patch. When I try and upload a file greater than a couple of k, I get a segfault in httpd. Could you