Re: Apache::Session getting DESTROYed in wrong order

2002-01-03 Thread Ken Williams
Hi Aaron, I don't have a test case involving Apache::Session yet (I've been out of town for a couple days), but here's a simple one in Perl that demonstrates the DESTROY order problem: -- #!/usr/bin/perl { package Outer; sub

[DIGEST] mod_perl digest 2001/12/31

2002-01-03 Thread James G Smith
-- mod_perl digest December 23, 2001 - December 31, 2001 -- Recent happenings in the mod_perl world... Covering

Re: Fast template system. Ideas,theorys and tools

2002-01-03 Thread Perrin Harkins
I looked at just about every template system on CPAN and came across text::template. Anyone use this one? I'd suggest you read my overview of templating options. It summarizes the top choices for templating tools, and talks about the strengths of weaknesses of Text::Template..

RFC: Apache::Handlers

2002-01-03 Thread James G Smith
This is a module I am working on, but haven't debugged yet. Looking for comments on what the name of the module should be if Apache::Handlers is not a good name. General comments on design are welcome as well. NAME Apache::Handlers SYNOPSIS In code: use Apache::Handlers

Re: RFC: Apache::Handlers

2002-01-03 Thread Geoffrey Young
use Apache::Handlers qw(CLEANUP PerlCleanupHandler); our $global; our $other_global : PerlCleanupHandler; my $lexical : PerlLogHandler(sub { print STDERR $lexical\n; }); CLEANUP { our $global = undef; }; heh, seems like you should

Re: Suggestions on an XML-RPC Service using modperl?

2002-01-03 Thread Perrin Harkins
Even then, I'd avoid disk-based cache systems, instead preferring Cache::* if it must be shared, or just global variables if it doesn't need to be. Cache::FileCache is disk-based, and it is the fastest of the Cache:: options for most data sets. There was a thread a little while back about

Re: Suggestions on an XML-RPC Service using modperl?

2002-01-03 Thread Perrin Harkins
As far as the cacheing goes, we have had extremely good luck with IPC::ShareLite used to share info across mod_perl processes. IPC::ShareLite is not as fast as some of the other options, especially when dealing with a large data set. The disk-based options tend to be faster. - Perrin

Re: Fast template system. Ideas,theorys and tools

2002-01-03 Thread Jason Czerak
On Thu, 2002-01-03 at 12:20, Perrin Harkins wrote: snip I implamented some google style timing in the API. It's basicly gets a Time::HiRes timestamp in the beginning and does the math at the very end and posts it in an html comment. You'd be better off with Devel::DProf (or

Re: WYSIWYG Template Editor

2002-01-03 Thread Perrin Harkins
Does anybody know a template engine, whose templates can be edited with a WYSIWYG editor (favourably dreamweaver) as they will look when filled with example data? HTML_Tree: http://homepage.mac.com/pauljlucas/software/html_tree/

Re: Fast template system. Ideas,theorys and tools

2002-01-03 Thread Perrin Harkins
What do you suggest as a good benchmark tool to use that would be 'smart' when testing a whole complete site. For pounding a bunch of URLs, the best are ab, httperf, and http_load. If you need something fancier that tests a complex series of actions and responses, there are several packages

Re: Apache::Session getting DESTROYed in wrong order

2002-01-03 Thread Ken Williams
On Thursday, January 3, 2002, at 11:57 AM, Perrin Harkins wrote: I don't have a test case involving Apache::Session yet (I've been out of town for a couple days), but here's a simple one in Perl that demonstrates the DESTROY order problem: That's sort of a weird example, since it has a

Re: Apache::Session getting DESTROYed in wrong order

2002-01-03 Thread Perrin Harkins
The circular reference was the only way I could think of to force an object to be destroyed during global destruction. What happens if you use a global? Hmm, that may be - Mason does create more closures now than it used to. It seems like only 'named' closures would create this problem,

RE: Sticky Pages.

2002-01-03 Thread David LeBlanc
Stan; I tried using Apache::PerlRun and got this in the error log: [Thu Jan 03 10:40:24 2002] [error] Can't locate object method filename via package Apache (perhaps you forgot to load Apache?) at J:/Perl/site/lib/Apache/PerlRun.pm line 24. What does this mean? Thanks, Dave LeBlanc

Re: Fast template system. Ideas,theorys and tools

2002-01-03 Thread Stas Bekman
Perrin Harkins wrote: What do you suggest as a good benchmark tool to use that would be 'smart' when testing a whole complete site. For pounding a bunch of URLs, the best are ab, httperf, and http_load. If you need something fancier that tests a complex series of actions and responses,

[ANNOUNCE (sort of)] Apache::UploadMeter-0.15

2002-01-03 Thread Issac Goldstand
Since I'm still waiting after a month for a PAUSE account (apparantly there's some major hold-up at [EMAIL PROTECTED]), I've released Apache::UploadMeter on sourceforge.net The project homepage is http://sourceforge.net/projects/apache-umeter Version 0.15 is out, but it's still Alpha, since

Strange Apache 2.0 rewrite/proxy issue

2002-01-03 Thread John Armstrong
This 'seems' to be a modperl issue. My configuration. I needed a 1.1 compliant reverse proxy in order to support Chunked encoding for an xml gateway. Since only Apache 2.0 has a 1.1 compliant reverse proxy I replaced my Apache 1.3.14 standard apache wth an Apache 2.0.28 with the proxy

Re: Strange Apache 2.0 rewrite/proxy issue

2002-01-03 Thread Ilya Martynov
On Thu, 3 Jan 2002 11:26:18 -0800, John Armstrong [EMAIL PROTECTED] said: John This 'seems' to be a modperl issue. John My configuration. I needed a 1.1 compliant reverse proxy in order to John support Chunked encoding for an xml gateway. John Since only Apache 2.0 has a 1.1 compliant reverse

Re: Strange Apache 2.0 rewrite/proxy issue

2002-01-03 Thread John Armstrong
I was looking at oops but it doesn't seem to suit my needs which are : Reverse 1.1 compliant proxy with mod_rewrite style capabilities. Squid is my next chance but I was hoping to get apache working since I don't want to run _3_ servers ( squid, static apache and modperl apache ). John- On

Problems with mod_perl and mod_dir (Segmentation fault)

2002-01-03 Thread William T. Martin
I am having problems getting mod_dir to work with mod_perl. When mod_perl is loaded, mod_dir does not work. In particular, I want to specify DirectoryIndex index.html in my httpd.conf file to set the default file to be accessed. When mod_perl is loaded, http://somehost/~someuser does not work,

Re: Apache::Session getting DESTROYed in wrong order

2002-01-03 Thread Jeffrey W. Baker
On Mon, 31 Dec 2001, Ken Williams wrote: Hey, I'm having problems with Apache::Session, the symptom is that none of my data is getting written to the database. It's not the nested-data problem, since I'm not using any nested data structures. After some investigation, I've discovered

Re: Apache::Session getting DESTROYed in wrong order

2002-01-03 Thread Ken Williams
On Thursday, January 3, 2002, at 02:02 PM, Jeffrey W. Baker wrote: This seems like a really weird problem. The Store module is destroyed while another module still has a reference to it. Unfortunately for you and I, the only conclusion I have been able to draw is that Perl's DESTROY

Re: Strange Apache 2.0 rewrite/proxy issue

2002-01-03 Thread Perrin Harkins
The 2.0.28 proxy uses mod_rewrite. When it rewrites url's internally to go to a static apache server all works great! Compare the headers sent by your static pages vs. the ones sent by your mod_perl pages. There might be something not quite 1.1 compliant about it that ticks of apache 2

Re: Strange Apache 2.0 rewrite/proxy issue

2002-01-03 Thread Igor Sysoev
On Thu, 3 Jan 2002, John Armstrong wrote: This 'seems' to be a modperl issue. My configuration. I needed a 1.1 compliant reverse proxy in order to support Chunked encoding for an xml gateway. Why do you need chunked encoding from backend ? Since only Apache 2.0 has a 1.1 compliant

Re: Strange Apache 2.0 rewrite/proxy issue

2002-01-03 Thread John Armstrong
Because the front end reverse proxy needs to connect to one of 3 different servers. 1) Static html server. 2) Mod Perl dynamic content server 3) Windows based xml servers that need to use 1.1 to communicate. So for 3 we need chunked or the Content-Length, either way, we need 1.1.

Re: Strange Apache 2.0 rewrite/proxy issue

2002-01-03 Thread Igor Sysoev
On Thu, 3 Jan 2002, John Armstrong wrote: Because the front end reverse proxy needs to connect to one of 3 different servers. 1) Static html server. 2) Mod Perl dynamic content server 3) Windows based xml servers that need to use 1.1 to communicate. So if one will make request to xml

Re: Strange Apache 2.0 rewrite/proxy issue

2002-01-03 Thread John Armstrong
Correct, with 1.0 we lose persistency and things slow down significantly. I guess I should have just said 'Persistency' in the first place, sorry about that :) John- On Thursday, January 3, 2002, at 01:44 PM, Igor Sysoev wrote: On Thu, 3 Jan 2002, John Armstrong wrote: Because the front

Re: Strange Apache 2.0 rewrite/proxy issue

2002-01-03 Thread Igor Sysoev
On Thu, 3 Jan 2002, John Armstrong wrote: Correct, with 1.0 we lose persistency and things slow down significantly. I guess I should have just said 'Persistency' in the first place, sorry about that :) OK. Where do you need persistent connection - between frontend and xml backend or

Re: Strange Apache 2.0 rewrite/proxy issue

2002-01-03 Thread Igor Sysoev
On Thu, 3 Jan 2002, John Armstrong wrote: When the reverse proxy connects to the windows boxes it needs to maintain a persistent connection since the client is an appliance, not a browser. So if you will have persistent connection between client and frontend and have non-persistent

Re: Strange Apache 2.0 rewrite/proxy issue

2002-01-03 Thread John Armstrong
Correct. The overall goal here is to allow Apache 2.0 to handle the URL rewriting and redirection for all different types of requests. Currently we use Apache 1.3.14 for some items and the F5 load balancing box for others. The F5 has a hard limit of 100 rules in its latest version and we

Apache::REquest on cygwin

2002-01-03 Thread Dan Horne
Hi I've been trting to get mod_perl working under cygwin. I've manages to install both Apache and mod_perl and have tested the earlier scripts in the O'Reilly Writing Apache Modules -e.g. The guestbook app. However, I can't get Apache::Request installed. The tail end of the make is: : lots of

Re: Apache::REquest on cygwin

2002-01-03 Thread Randy Kobes
On Fri, 4 Jan 2002, Dan Horne wrote: I've been trting to get mod_perl working under cygwin. I've manages to install both Apache and mod_perl and have tested the earlier scripts in the O'Reilly Writing Apache Modules -e.g. The guestbook app. However, I can't get Apache::Request installed.

Re: Sticky Pages.

2002-01-03 Thread Stas Bekman
David LeBlanc wrote: Stan; I tried using Apache::PerlRun and got this in the error log: [Thu Jan 03 10:40:24 2002] [error] Can't locate object method filename via package Apache (perhaps you forgot to load Apache?) at J:/Perl/site/lib/Apache/PerlRun.pm line 24. What does this mean?