Re: END subroutine in Apache::Registry

2002-07-16 Thread Stas Bekman
Hi Jim, The documentation is neither unclear nor confusing. However, the implication was not obvious (well... not obvious enough) when I first read this section three years ago. If you're sincere about wanting suggestions, here's mine: of course :) In addition to understanding the

Re: TIPool / multiple database connections

2002-07-16 Thread Stas Bekman
Perrin Harkins wrote: Elizabeth Mattijsen wrote: Hmm... but you won't be able to fetch the $dbh from the thread. It can only live in _that_ thread. You cannot pass objects between threads. But you _can_ send queries to that thread, fetch a jobid for that job and then obtain whatever

Re: Persistent Net::Telnet Objects in Apache2/mod_perl2

2002-07-16 Thread Stas Bekman
French, Shawn wrote: Stas Bekman wrote: It seems that you are after the same functionality as Apache::DBI, you want a pool of items that you want to be able to choose from. Look for threads::shared (perl 5.8.0), just create a shared hash with keys that you use for the map and the values for

Getting to the Guide PDF on the new website

2002-07-16 Thread Gunther Birznieks
At 09:24 PM 7/13/2002, Stas Bekman wrote: Gunther Birznieks wrote: I agree! It is great work. It looks really slick. :) Unfortunately, the mod_perl guide documentation area has lost functionality. I wanted to download the latest guide before my 23 hour flight to the USA (to read on the

Re: TIPool / multiple database connections

2002-07-16 Thread Elizabeth Mattijsen
At 02:57 PM 7/16/02 +, Stas Bekman wrote: Perrin Harkins wrote: Hmmm... That could really throw a wrench in things. If you have an object based on a hash, and you share that hash, and you re-bless the object in each thread, does that work? What if the hash contains references to other

Re: Getting to the Guide PDF on the new website

2002-07-16 Thread Stas Bekman
Gunther Birznieks wrote: At 09:24 PM 7/13/2002, Stas Bekman wrote: Gunther Birznieks wrote: I agree! It is great work. It looks really slick. :) Unfortunately, the mod_perl guide documentation area has lost functionality. I wanted to download the latest guide before my 23 hour

Re: TIPool / multiple database connections

2002-07-16 Thread Stas Bekman
Liz, should we move this thread to the perl-ithreads list so we can get some answers from the threads gurus? or p5p? I doubt Arthur is listening on this list. __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker

Re: sql-relay

2002-07-16 Thread Jean-Michel Hiver
What problem is that? I don't think there's much you can do beyond re-connecting, which Apache::DBI does. Well, the thing about SQLRelay is that it pools database connections, which is good when you want to have plenty of persistent connections to different databases. My only problem with

Re: Working Directory

2002-07-16 Thread Stas Bekman
Matt Sergeant wrote: On Fri, 12 Jul 2002, Stas Bekman wrote: Josh Bernstein wrote: After just upgrading to mod_perl2 with Apache2. My current @INC path includes a . on the end, which should reference the current working directory, and therefore correctly locate include locate in the

Apache SSL - how to start it in -X mode

2002-07-16 Thread krzysiek
How to restart SSL Apache in -X mode? Thanks in advance for your help Mark

Re: Apache SSL - how to start it in -X mode

2002-07-16 Thread Stas Bekman
[EMAIL PROTECTED] wrote: How to restart SSL Apache in -X mode? This is a wrong forum. See: http://httpd.apache.org/lists.html#http-users __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/

Re: Working Directory

2002-07-16 Thread Elizabeth Mattijsen
At 06:10 PM 7/16/02 +, Stas Bekman wrote: Arthur told me he either had, or was going to fix this (on IRC). Yup, Arthur is working on an external package (ex::threads::safecwd?) which should solve this problem. Viva Arthur! I'll keep you updated once it gets released. Check out Arthur's

Re: Working Directory

2002-07-16 Thread Stas Bekman
Elizabeth Mattijsen wrote: At 06:10 PM 7/16/02 +, Stas Bekman wrote: Arthur told me he either had, or was going to fix this (on IRC). Yup, Arthur is working on an external package (ex::threads::safecwd?) which should solve this problem. Viva Arthur! I'll keep you updated once it

Re: [ANNOUNCE] Petal 0.1

2002-07-16 Thread Kip Hampton
At 10:41 AM 07/16/2002 +0100, Jean-Michel Hiver wrote: Hi list, I am glad to announce the first release of Petal, the Perl Template Attribute Language module. You will find a rather copious documentation here: http://search.cpan.org/doc/JHIVER/Petal-0.1/lib/Petal.pm It should be

worker thread

2002-07-16 Thread Pasquale Pagano
We are trying to use: 1) Apache 2.0.39 compiled with the option --with-mpm=worker 2) with modperl 2.0 under Sun Solaris 2.8 with Perl 5.8 RC2. Although everything seems to work fine, the creation of a custom worker thread takes more or less 2 minutes. Here below a section of the code

Re: duplicate output with Registry.pm

2002-07-16 Thread Eric Frazier
Hi, It happens with the printenv script also. Again, I did this to myself before, but I can't remember how I fixed it. It was something very simple. Thanks, Eric My http.conf perl stuff = # mod_perl config PerlRequire

Re: duplicate output with Registry.pm

2002-07-16 Thread Eric Cholet
--On Tuesday, July 16, 2002 06:44:10 -0400 Eric Frazier [EMAIL PROTECTED] wrote: Hi, It happens with the printenv script also. Again, I did this to myself before, but I can't remember how I fixed it. It was something very simple. Thanks, Seems like Location /perl will happily match

relative path not accepted in mod_perl2 ?

2002-07-16 Thread pilsl
I just upgraded to apache2 and mod_perl1.99 and the first big difference I noticed is that I can include my libraries using relative pathes any more. Until now I had my mainprogram and its library/ies in the same path. like # ls edit.* edit.lib.pl edit.pl and in edit.pl I had the line

Re: duplicate output with Registry.pm

2002-07-16 Thread Eric Frazier
Hi, I will try that out. It was something like that, it even rings a bell a bit. Thanks! I will let you know. Eric At 03:51 PM 7/16/02 +0200, Eric Cholet wrote: --On Tuesday, July 16, 2002 06:44:10 -0400 Eric Frazier [EMAIL PROTECTED] wrote: Hi, It happens with the printenv script

Re: worker thread

2002-07-16 Thread Stas Bekman
Pasquale Pagano wrote: We are trying to use: 1)Apache 2.0.39 compiled with the option --with-mpm=worker 2)with modperl 2.0 under Sun Solaris 2.8 with Perl 5.8 RC2. Although everything seems to work fine, the creation of a custom worker thread takes more or less 2 minutes. Here

Re: relative path not accepted in mod_perl2 ?

2002-07-16 Thread pilsl
just found out the deeper reason - mod_perl now always has path=/ which is unexpected behaviour. While I can filter out the actual path from the cgi-environment I dont understand this .. thnx, peter On Tue, Jul 16, 2002 at 04:12:02PM +0200, [EMAIL PROTECTED] wrote: I just upgraded to

R: worker thread

2002-07-16 Thread Pasquale Pagano
From the command line, it works very well. We are impleminting a very complex digital library system. In same cases, we want to start parallel threads in order to minimize the wait. Let me try to explain with an example. 'A' start 4 threads, each of which prepares, and sends a request to another

Purify, Perl and mod_perl

2002-07-16 Thread Carwheel, Dan
I've looked at Rational's Purify: http://www.rational.com/products/purify_unix/index.jsp, and although their web page says only works for C, C++, Java and a few others, I've seen this page: http://www.perlpod.com/stable/perlhack.html on getting Perl work with with Purify.

Apache::Registry and Apache::PerlRun

2002-07-16 Thread Boex,Matthew W.
question, can i have both Registry and PerlRun running in the same environment? i have my cgi scripts running under Apache::Registry in one directory, and want to run a legacy cgi script under PerlRun in another directory. is this possible? matt

Re: relative path not accepted in mod_perl2 ?

2002-07-16 Thread Ilya Martynov
On Tue, 16 Jul 2002 16:30:16 +0200, [EMAIL PROTECTED] said: P just found out the deeper reason - mod_perl now always has path=/ P which is unexpected behaviour. While I can filter out the actual path P from the cgi-environment I dont understand this .. See [EMAIL

Re: Apache::Registry and Apache::PerlRun

2002-07-16 Thread Perrin Harkins
Boex,Matthew W. wrote: can i have both Registry and PerlRun running in the same environment? i have my cgi scripts running under Apache::Registry in one directory, and want to run a legacy cgi script under PerlRun in another directory. is this possible? Yes, no problem at all. - Perrin

Re: relative path not accepted in mod_perl2 ?

2002-07-16 Thread Stas Bekman
[EMAIL PROTECTED] wrote: just found out the deeper reason - mod_perl now always has path=/ which is unexpected behaviour. While I can filter out the actual path from the cgi-environment I dont understand this .. See the parallel thread on the same topic.

Re: Apache::Registry and Apache::PerlRun

2002-07-16 Thread Stas Bekman
Boex,Matthew W. wrote: question, can i have both Registry and PerlRun running in the same environment? i have my cgi scripts running under Apache::Registry in one directory, and want to run a legacy cgi script under PerlRun in another directory. is this possible? matt of course.

Re: Purify, Perl and mod_perl

2002-07-16 Thread Perrin Harkins
Carwheel, Dan wrote: although their web page says only works for C, C++, Java and a few others, I've seen this page: http://www.perlpod.com/stable/perlhack.html on getting Perl work with with Purify. That page is about getting Perl's C executable to work with Purify, not using

Re: R: worker thread

2002-07-16 Thread Stas Bekman
Pasquale Pagano wrote: From the command line, it works very well. We are impleminting a very complex digital library system. In same cases, we want to start parallel threads in order to minimize the wait. Let me try to explain with an example. 'A' start 4 threads, each of which prepares,

Re: R: worker thread

2002-07-16 Thread Elizabeth Mattijsen
At 11:19 PM 7/16/02 +, Stas Bekman wrote: From the command line, it works very well. We are impleminting a very complex digital library system. In same cases, we want to start parallel threads in order to minimize the wait. Let me try to explain with an example. 'A' start 4 threads, each of

Re: Purify, Perl and mod_perl

2002-07-16 Thread Stas Bekman
Perrin Harkins wrote: [...] My question is this...can I run my application using this purified perl under mod_perl to track down potential memory leaks and other problems? You probably don't have any memory leaks. Most things that people refer to as leaks are just normal growth. A leak

RE: Purify, Perl and mod_perl

2002-07-16 Thread Carwheel, Dan
I understand. But, given a new 'purified' perl binary I could build using Purify, would it allow me to diagnose or trace memory leaks back to my Perl code? I'm asking from a theoretical basis here, since I agree with you, I doubt I have any memory leaks. Thanks. --Dan -Original

R: R: worker thread

2002-07-16 Thread Pasquale Pagano
Ok, as you have seen in my first e-mail, I have installed Perl 5.8.0 RC2. Now, I'm moving to RC3 and and tomorrow I will tell you what happens. Thanks for the moment, Lino -Messaggio originale- Da: Elizabeth Mattijsen [mailto:[EMAIL PROTECTED]] Inviato: martedi 16 luglio 2002 17.32 A:

problem compiling modperl2.0

2002-07-16 Thread Harry Zhu
I am trying to create a test environment for modperl2.0/apache2/perl5.8 under RedHat7.3. As root, I did the first step, download using the cvs to get the modperl-2.0, httpd-2.0 and apr, apr-util (placed in httpd-2.0/srclib). make make install is fine. I using rsync to get the Perl, and the

Re: problem compiling modperl2.0

2002-07-16 Thread Stas Bekman
Harry Zhu wrote: I am trying to create a test environment for modperl2.0/apache2/perl5.8 under RedHat7.3. As root, I did the first step, download using the cvs to get the modperl-2.0, httpd-2.0 and apr, apr-util (placed in httpd-2.0/srclib). make make install is fine. I using rsync to get

Re: [modperl2] Perl Connection Handlers for SSL connections

2002-07-16 Thread Stas Bekman
Pete Rothermel wrote: I've got the example echo() handler working for a non-HTTP protocol as outlined on the new web site: http://perl.apache.org/docs/2.0/user/handlers/handlers.html#Command__Protocol__Phases Anybody have a similar example for the same protocol handler over SSL? the

while - modperl 2.0/Apache 2.0

2002-07-16 Thread Udlei Nattis
hi sorry my english i have one problem when i open 2 browsers intance and access my perl script instance 1 run script OK instance 2 waiting instance 1 finalize to run :/ i need run simultane 2 instance (modperl 2.0 dev 5 / perl 8 rc 3 / apache 2.0 prefork or worker ) example: #!/usr/bin/perl

Re: while - modperl 2.0/Apache 2.0

2002-07-16 Thread Stas Bekman
Udlei Nattis wrote: hi sorry my english i have one problem when i open 2 browsers intance and access my perl script instance 1 run script OK instance 2 waiting instance 1 finalize to run :/ i need run simultane 2 instance (modperl 2.0 dev 5 / perl 8 rc 3 / apache 2.0 prefork or worker

Re: Working Directory

2002-07-16 Thread Josh Bernstein
Sounds great? Does he have anything that I could play with? I'm really dying for that chdir(), my programmer says he depends on that functionality. I'd even volunteer to do some benchmarks and what not associated with the extra overhead of making the function thread safe. If its not really

Re: Working Directory

2002-07-16 Thread Stas Bekman
Josh Bernstein wrote: Sounds great? Does he have anything that I could play with? I'm really dying for that chdir(), my programmer says he depends on that functionality. I'd even volunteer to do some benchmarks and what not associated with the extra overhead of making the function thread

Re: while - modperl 2.0/Apache 2.0

2002-07-16 Thread Udlei Nattis
Udlei Nattis wrote: how many servers do you run? worker: IfModule worker.c StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 /IfModule prefork: IfModule prefork.c StartServers 5 MinSpareServers

ANNOUNCE: Apache::Session::Serialize::YAML 0.01

2002-07-16 Thread Tatsuhiko Miyagawa
Just 8 lines of glue code to use YAML as a Apache::Session serialization handler. Any suuggestions welcome, Thanks. The URL http://bulknews.net/lib/archives/Apache-Session-Serialize-YAML-0.01.tar.gz has entered CPAN as file:

New mod_perl site and oddness with IE

2002-07-16 Thread Jim Helm
Has anyone else had problems with this particular page under IE (6.0.2600 under XP) being extremly slow to update when paging up/down? It works fine under Mozilla, and it's not a memory or cpu issue (checked with task manager already). And when I say slow, I mean a simple down cursor causes the

Re: New mod_perl site and oddness with IE

2002-07-16 Thread Issac Goldstand
Not just you. I have the same problem under MSIE. Issac - Original Message - From: Jim Helm [EMAIL PROTECTED] To: 'Perrin Harkins' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, July 17, 2002 8:23 AM Subject: New mod_perl site and oddness with IE Has anyone else had

RE: New mod_perl site and oddness with IE

2002-07-16 Thread Randy Harmon
IE 5.5 on win2k as well. -Original Message- From: Issac Goldstand [mailto:[EMAIL PROTECTED]] Not just you. I have the same problem under MSIE. Has anyone else had problems with this particular page under IE (6.0.2600 under XP) being extremly slow to update when paging up/down?

Re: New mod_perl site and oddness with IE

2002-07-16 Thread Stas Bekman
Jim Helm wrote: Has anyone else had problems with this particular page under IE (6.0.2600 under XP) being extremly slow to update when paging up/down? It works fine under Mozilla, and it's not a memory or cpu issue (checked with task manager already). And when I say slow, I mean a simple down