Re: mp1 internal_redirect question

2007-12-06 Thread Perrin Harkins
On Dec 1, 2007 11:42 PM, Silent [EMAIL PROTECTED] wrote: and I have another server has mod_perl-1.99_09 with apache httpd-2.0.46-44.ent on redhat es3 update4 I want to know: which version mod_perl document is related to mod_perl 1.99, 1.x or 2.x ? 1.99 is a pre-release version of mod_perl 2

Re: mp1 internal_redirect question

2007-12-06 Thread Perrin Harkins
On Dec 5, 2007 11:15 PM, Silent [EMAIL PROTECTED] wrote: I tryed mod_rewrite to redirect base on user_agent, it works very fine! but I still want to know how to do it in mod_perl. Can you tell us what you did in mod_rewrite? Then we can show you an equivalent for mod_perl. - Perrin

Re: [Mason] persisting an object to all parts

2007-12-05 Thread Perrin Harkins
On Dec 5, 2007 6:33 PM, Anthony Ettinger [EMAIL PROTECTED] wrote: In effect, I just want this thing to die off at the end of each http request, and not shared between other users of the application. Use mod_perl's $r-pnotes(). It will be cleaned out for you at the end of each request, even if

Re: Flex

2007-12-02 Thread Perrin Harkins
On Dec 1, 2007 3:22 PM, Will Fould [EMAIL PROTECTED] wrote: Have you thought about it too? Yes. It sounds possibly quicker than AJAX, which is pretty time-consuming to develop for anything non-trivial. (Google makes it look easy, but they probably spent millions debugging those maps on

Re: Flex

2007-12-02 Thread Perrin Harkins
On Dec 2, 2007 6:10 PM, David Scott [EMAIL PROTECTED] wrote: AJAX is anything but time-consuming once you get the hang of it. I much prefer it to traditional server-side dynamic page construction, which really is time-consuming. My experience has been that even the best JavaScript tools

Re: How to set Environment variable in a Perl script ?

2007-11-29 Thread Perrin Harkins
On Nov 29, 2007 8:06 AM, [EMAIL PROTECTED] wrote: I try to setup the Perl section of the httpd.conf to 'pass' the 'VARIABLE' environment variable but without success ! Those settings are for passing variables into mod_perl, not for passing them from mod_perl to an external process. It should

Re: [RDBO] suggestions for enchancement

2007-11-28 Thread Perrin Harkins
On Nov 27, 2007 11:21 PM, David Lloyd [EMAIL PROTECTED] wrote: Ron Savage wrote: You mean like SQL::Abstract? http://search.cpan.org/~nwiger/SQL-Abstract-1.22/ I was thinking the same thing...does that not do what the OP wishes it to? SQL::Abstract is very limited. It doesn't even handle

Re: [RDBO] suggestions for enchancement

2007-11-27 Thread Perrin Harkins
On Nov 27, 2007 2:41 PM, maxim [EMAIL PROTECTED] wrote: its useful when you have XML based framework where your backend is trying to reflect some XML schema and you dont what to remap XML on the DB schema but just using it. If you really want to use XML for your backend storage, I'd suggest

Re: SELECT Speed

2007-11-27 Thread Perrin Harkins
On Nov 27, 2007 10:21 AM, mos [EMAIL PROTECTED] wrote: At 05:57 PM 11/26/2007, you wrote: The second query might be faster due to caching. This can be verified by executing: RESET QUERY CACHE before executing the second query. This will clear the queries from the cache. No need to blow

Re: [Mason] ttys

2007-11-27 Thread Perrin Harkins
On Nov 26, 2007 10:43 PM, namotco [EMAIL PROTECTED] wrote: What about using shared memory? ShareLite for instance. Are there dis/advantages? Unfortunately, ShareLite has terrible performance. You can nearly always beat it with standard files or MySQL. You can beat it by miles with

Re: [Mason] memcached interface for Cache::Cache (to use with Mason)

2007-11-27 Thread Perrin Harkins
On Nov 27, 2007 1:20 PM, Enrico Sorcinelli [EMAIL PROTECTED] wrote: So, Perrin, have you simply forgot to release the wrapper :-), or you've abandoned the project, or I'm missing something, or what...? That one didn't make it, but it has been reborn. Come join us. Jon Swartz has some working

Re: How will I know when I'm ready for mod_perl?

2007-11-27 Thread Perrin Harkins
On Nov 27, 2007 9:41 AM, CraigT [EMAIL PROTECTED] wrote: I'm have strict everywhere, no global variables, and all subroutines are stand-alone objects with well defined interfaces in and out. I have code in a startup.pl file executed by the HTTPD process that defines the mod_perl handler and

Re: GATEWAY_INTERFACE CGI-Perl

2007-11-27 Thread Perrin Harkins
On Nov 26, 2007 4:14 PM, Neil Shephard [EMAIL PROTECTED] wrote: So it appears to me that apache doesn't like the regular expression. Has anyone else experienced this problem? Is it a bug that needs reporting? If Apache didn't like them, it would refuse to start. You probably just have either

Re: Auth Question need some input

2007-11-27 Thread Perrin Harkins
On Nov 26, 2007 6:12 PM, Alexander Burrows [EMAIL PROTECTED] wrote: Alright I have been sitting on the side lines of learning anything new about mod_perl for too long. So I hope I've come to the right place to get brushed up on things. You have. Welcome! I don't write a lot of auth handlers,

Re: REST

2007-11-27 Thread Perrin Harkins
On Nov 27, 2007 1:04 PM, Dami Laurent (PJ) [EMAIL PROTECTED] wrote: But if you don't need that complexity, you can easily do it in mod_perl : configure Apache with something like LocationMatch /parts/\d+$ SetHandler modperl PerlResponseHandler My::Parts::Handler /LocationMatch

Re: Auth Question need some input

2007-11-27 Thread Perrin Harkins
On Nov 27, 2007 9:32 PM, Alexander Burrows [EMAIL PROTECTED] wrote: Also what is HMAC? http://en.wikipedia.org/wiki/Hmac - Perrin

Re: get apache's concurrent connection number

2007-11-26 Thread Perrin Harkins
On Nov 25, 2007 10:08 PM, yonghua [EMAIL PROTECTED] wrote: How to get Apache's concurrent connection number under modperl? We have a plan that, when an apache's concurrent connection is large, we make the apache to redirect user's new request to another http server. So I need to write a mp

Re: get apache's concurrent connection number

2007-11-26 Thread Perrin Harkins
On Nov 26, 2007 8:54 PM, yonghua [EMAIL PROTECTED] wrote: Our application has a large cluster, that's to say, there is an application, which is running on about 40 linux boxes (each box is a mirror).And those 40 linux boxes are locatated in different areas. When a server get high load, we

Re: Modifiable APR::Request::Param::Table

2007-11-25 Thread Perrin Harkins
On Nov 25, 2007 11:43 AM, Adam Prime [EMAIL PROTECTED] wrote: The rub here for me is that in apreq1 you could modify param just fine, but that in apreq2 you cannot. None of the porting documents mention this unfortunately. The PORTING section of the Apache2::Request docs do say this. I think

Re: Connection Pooling

2007-11-24 Thread Perrin Harkins
On Nov 24, 2007 9:45 PM, Mag Gam [EMAIL PROTECTED] wrote: Is it possible to do database connection pooling with mod_perl? There are options. Are you getting close to the maximum connection your database can handle? You should be running a reverse proxy in front of your mod_perl server, which

Re: Modifiable APR::Request::Param::Table

2007-11-23 Thread Perrin Harkins
On Nov 22, 2007 2:36 PM, Jimmy Li [EMAIL PROTECTED] wrote: I'm currently using the tied APR::Request::Param::Table object to get request parameters. However, this tied object does not implement STORE so I cannot add or modify information in this object. Can you tell us what you're ultimately

Re: Modifiable APR::Request::Param::Table

2007-11-23 Thread Perrin Harkins
On Nov 23, 2007 5:57 PM, Jimmy Li [EMAIL PROTECTED] wrote: I am using Apache2::Request - APR::Request::Param::Table is just the underlying table used by Apache2::Request. Sorry, I was thinking you were using the mod_perl API directly. Get the request parameters using the tied

Re: [mp 2.0.4-dev] mod_perl segfaults httpd with simple CGI redirect

2007-11-21 Thread Perrin Harkins
On Nov 21, 2007 9:54 AM, David Eisner [EMAIL PROTECTED] wrote: httpd segfaults when I access this CGI, on the second or subsequent access (but not the first) after restarting the server: use CGI qw/:standard/; use strict; my $q = CGI-new(); handle_response(); exit(0);

Re: Trying To Come Up Under PerlRun

2007-11-21 Thread Perrin Harkins
On Nov 21, 2007 1:47 PM, CraigT [EMAIL PROTECTED] wrote: Since the last time, I reworked all subroutines into stand-alone objects, as you suggested would be necessary to ever get to mod_perl. It was a good exercise. Glad to hear it. ***I verify the links using a printing routine I

Re: Trying To Come Up Under PerlRun

2007-11-21 Thread Perrin Harkins
On Nov 21, 2007 2:59 PM, CraigT [EMAIL PROTECTED] wrote: Below is the way I bring the parameters across in the programs of the 2 links I listed in the original post.. my $page = new CGI; Make sure you have CGI.pm version 3.29. If you don't, upgrade it. - Perrin

Re: [RDBO] Wanted: Perl programmers (Boston, MA)

2007-11-19 Thread Perrin Harkins
On Nov 14, 2007 10:31 AM, John Siracusa [EMAIL PROTECTED] wrote: We use mod_perl, Informix, MySQL, an MVC web application framework, and (of course :) Rose::DB::Object and Rose::HTML::Objects. When is the Rose web framework coming to CPAN? I'm ready for it. - Perrin

Re: Losing Variables under Apache2 Reload

2007-11-19 Thread Perrin Harkins
On Nov 19, 2007, at 12:51 PM, Jonathan Vanasco wrote: ideally it would be something like: on_reload { reload_these( @namespaces ); } That should be easy enough. Just touch all of those files and they will all be reloaded. - Perrin

Re: Losing Variables under Apache2 Reload

2007-11-18 Thread Perrin Harkins
On Nov 18, 2007 7:30 PM, Jonathan Vanasco [EMAIL PROTECTED] wrote: below is a summation of my problem. when a2::reload recompiles off of a changed sub, i lose the entire WATCH_ME var. What would this code do if it was working? %WATCH_ME doesn't look like anything ever gets put into it. Does

Re: Pb w/ Archive::Zip under Mac OS X 10.5

2007-11-14 Thread Perrin Harkins
On Nov 14, 2007 6:17 AM, Laurent MARTIN [EMAIL PROTECTED] wrote: I've checked my whole disk and I've got only one 'perl' binary, ie. the one provided with Leopard (I haven't compiled Perl by myself) and installed in /usr/bin. Did you upgrade this machine though? It's possible that you had a

Re: error log analyzer/reporter

2007-11-14 Thread Perrin Harkins
On Nov 14, 2007 1:17 PM, Jonathan Swartz [EMAIL PROTECTED] wrote: We want to periodically analyze our apache error logs, and send out email reports with summaries of new errors that have occurred since the last report. Ideally, similar errors would be combined into groups, and reported in

Re: Transactions and locking

2007-11-13 Thread Perrin Harkins
On Nov 13, 2007 4:53 AM, Yves Goergen [EMAIL PROTECTED] wrote: From that page: Sometimes it would be useful to lock further tables in the course of a transaction. Unfortunately, LOCK TABLES in MySQL performs an implicit COMMIT and UNLOCK TABLES. An InnoDB variant of LOCK TABLES has been

Re: Transactions and locking

2007-11-13 Thread Perrin Harkins
On Nov 13, 2007 11:39 AM, Baron Schwartz [EMAIL PROTECTED] wrote: InnoDB can also lock the gap, which will prevent new rows that would have been returned by the SELECT. The manual has more info on this in the section on consistent reads in InnoDB. FOR UPDATE will do what you need.

Re: Transactions and locking

2007-11-13 Thread Perrin Harkins
On Nov 13, 2007 3:32 PM, Yves Goergen [EMAIL PROTECTED] wrote: I found the Oracle reference and it says that locks can never lock queries, so reading a table is possible in any case. No, you just have to use FOR UPDATE and it will block. - Perrin -- MySQL General Mailing List For list

Re: mod perl and HTML forms

2007-11-13 Thread Perrin Harkins
On Nov 12, 2007 9:38 PM, Mag Gam [EMAIL PROTECTED] wrote: I am new to mod_perl, and I am trying to pass data thru a HTML form. I am able to get all data with the exception of SELECT MULTIPLE Can someone please provide a good example with this? use CGI; my $q = CGI-new; my @values =

Re: OffTopic (slightly) - Module Feedback Wanted - Authen::Ticketless

2007-11-13 Thread Perrin Harkins
On Nov 13, 2007 1:57 PM, Jonathan Vanasco [EMAIL PROTECTED] wrote: client: Hey I want to log in! server: Here's a Challenge: $time. $seed . digest ($time . $seed . $site_secret ) client: Here is my username and a hash that is Digest( password , server_challenge ) server: I looked up your

Re: Pb w/ Archive::Zip under Mac OS X 10.5

2007-11-13 Thread Perrin Harkins
On Nov 13, 2007 4:02 PM, Laurent MARTIN [EMAIL PROTECTED] wrote: When I run it through mod_perl, I get the following error message: [Tue Nov 13 21:58:00 2007] [error] is only avaliable with the XS version That sounds like the perl you compiled this module with (and that you use when you run

Re: Transactions and locking

2007-11-12 Thread Perrin Harkins
On Nov 12, 2007 1:25 PM, Yves Goergen [EMAIL PROTECTED] wrote: When I start a transaction, then find the maximum value of a column and use that + 1 to write a new row into the table, how do transactions protect me from somebody else doing the same thing so that we'd both end up writing a new

Re: Transactions and locking

2007-11-12 Thread Perrin Harkins
On Nov 12, 2007 2:43 PM, Yves Goergen [EMAIL PROTECTED] wrote: SELECT COUNT(*) FROM table WHERE name = ? -- a short delay which is long enough for a concurrent request :( UPDATE table SET name = ? WHERE id = ? I think that even with SERIALIZABLE isolation level, this won't lock anything if it

Re: Transactions and locking

2007-11-12 Thread Perrin Harkins
On Nov 12, 2007 5:24 PM, Yves Goergen [EMAIL PROTECTED] wrote: Damn, I found out that I need table locking *and* transactions. What makes you say that? Maybe I'm really better off using a sequence (like the one PostgreSQL offers and like it is available as an add-on for Perl [1]). That Perl

Re: Transactions and locking

2007-11-12 Thread Perrin Harkins
On Nov 12, 2007 5:58 PM, Yves Goergen [EMAIL PROTECTED] wrote: BEGIN TRANSACTION SELECT MAX(id) FROM table INSERT INTO table (id) VALUES (?) INSERT INTO othertable (id) VALUES (?) COMMIT First I find a new id value, then I do several INSERTs that need to be atomic, and especially roll back

Re: simple profiling capability

2007-11-12 Thread Perrin Harkins
On Nov 12, 2007 3:25 PM, E R [EMAIL PROTECTED] wrote: 1. a call to $profile-mark(...) will emit a special record to the log file 2. on server start up, spawn a single process to monitor the log file and collect profile records 3. have the monitoring process listen on a socket for requests for

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Perrin Harkins
Don't use Apache::SharedMem. It uses IPC::ShareLite, which is slow. Does memcached or Cache::FastMap work with apache's shared memory pool? No, I don't think anyone has ever gotten that to work. In this situation if its possible (which it should be for my own modules) I would like the

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Perrin Harkins
On Nov 7, 2007 5:50 PM, Boysenberry Payne [EMAIL PROTECTED] wrote: If I created some of my static hashes and objects during the PerlPostConfigHandler phase and added them to either the configuration or log pools You're missing the big picture. Adding perl objects to a shared memory pool

Re: 32 64 bit memory differences

2007-11-06 Thread Perrin Harkins
On Nov 6, 2007 1:41 PM, Gary Sewell [EMAIL PROTECTED] wrote: The discrepancies I mentioned in the size of each of our apache instances is something I don't think I personally be able to get to the bottom of, I have attempted Apache::Status, this gives out our loaded modules etc but not

Re: no request object for scripts, debian etch packaged apache2, mod_perl2

2007-11-06 Thread Perrin Harkins
On Nov 6, 2007 3:37 PM, Collin Monahan [EMAIL PROTECTED] wrote: I have googled around quite a bit but haven't found anything for this. Using Apache 2.2.3, mod_perl 2.0.2-2.4, both are from Debian packages. I am not using handlers, just scripts, and so I have nothing to shift. Also, the

Re: 32 64 bit memory differences

2007-11-04 Thread Perrin Harkins
On 11/4/07, Darryl Miles [EMAIL PROTECTED] wrote: Usually most setups that need to use a reverse proxy need at least 3 backend servers. I think you're missing the purpose of the reverse proxy. Any mod_perl system will be able to run fewer mod_perl processes if you run a reverse proxy. It

Re: Apache::Upload / tempname vs link vs slurping fh

2007-10-30 Thread Perrin Harkins
On 10/30/07, Aaron Trevena [EMAIL PROTECTED] wrote: The correct way seems to be to use link(), but I can't be sure it will be linked from the same filesystem and it's another unwanted step before I copy to remote servers. File::Copy? - Perrin

Re: [RDBO] cached DBI handles

2007-10-26 Thread Perrin Harkins
Hmm, why not use DBI-connect_cached for this? - Perrin - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a

Re: Strange things with Apache::Request

2007-10-25 Thread Perrin Harkins
On 10/25/07, Yuri Pats [EMAIL PROTECTED] wrote: From some time (maybe some upgrade was done) all handlers that uses Apache2::Request, was broken. Sounds like you should try recompiling libapreq2 then. - Perrin

Re: Rose::DB and Apache::DBI

2007-10-24 Thread Perrin Harkins
On 10/23/07, John Siracusa [EMAIL PROTECTED] wrote: My problems were more along the lines of not realizing that an internal subrequest was happening, which (if memory serves) would end up clearing pnotes (or maybe my code was clearing/resetting pnotes when re-traversed for the subrequest). In

Re: Rose::DB and Apache::DBI

2007-10-24 Thread Perrin Harkins
On 10/24/07, John Siracusa [EMAIL PROTECTED] wrote: Well, if we trust register_cleanup() to clean up db connections and so on, why not trust it to reset globals too? The problems I had involved unpredictable order of execution with multiple cleanups. I'm fuzzy on the details though, since this

Re: Rose::DB and Apache::DBI

2007-10-23 Thread Perrin Harkins
On 10/23/07, John Siracusa [EMAIL PROTECTED] wrote: I've had some bad experiences with passing database handles around in pnotes. It should be safe to do that. One thing to remember is that pnotes takes an alias to what you pass in, not a copy. If you feed it $foo and then change the value of

Re: ModPerl make test and make install Issues

2007-10-17 Thread Perrin Harkins
On 10/17/07, Suman, Shambhu [EMAIL PROTECTED] wrote: I am trying to install mod-perl on a linux box. I do not have root permissions. You need to tell it to install a private perl lib then. Check the install instructions for the details of how to tell it where to install the perl modules. I

Re: movin away from apache to sun java web server and perl module

2007-10-17 Thread Perrin Harkins
On 10/17/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: No we come to know that we cannot run mod perl in sun java web server.? Is that the truth I cannot accept it. You would have to ask someone at Sun about that. The people on this list use apache and mod_perl. I suspect you could port

Re: Mod_Perl and MaxRequestsPerChild

2007-10-17 Thread Perrin Harkins
On 10/16/07, Mark Maunder [EMAIL PROTECTED] wrote: This server has no proxy in front of it and only serves mod_perl requests. Static content is loaded from another server with a different hostname. Even so, if you run prefork, you need a proxy server. The reason is explained in detail here:

Re: redirect

2007-10-17 Thread Perrin Harkins
On 10/17/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: We are getting some responses from a html page and filtering the content accoding to our requirement. Do you mean you're getting dynamic content from running a program, or that you're just reading an HTML page? Static HTML pages never

Re: help me...

2007-10-17 Thread Perrin Harkins
On 10/15/07, Tyler Bird [EMAIL PROTECTED] wrote: I am running a perl email sending engine ( which delivers 50K+ emails per hour ) Anyways this system is made up of various daemons connecting to each other. Are you using mod_perl for this somehow? This list is only for mod_perl questions. If

Re: Mod_Perl and MaxRequestsPerChild

2007-10-17 Thread Perrin Harkins
On 10/17/07, Mark Maunder [EMAIL PROTECTED] wrote: Assuming threaded and prefork work equally well in my config, doesn't it therefore make sense to run a threaded MPM with a small interpreter pool instead of running prefork with a reverse proxy? Well, you're going to use more memory with

Re: location header

2007-10-16 Thread Perrin Harkins
On 10/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: when i put warn command after the life to fetch the $location value,It doesn't yield any value. my $location = $r-headers_out-get('Location'); There won't be anything there unless you put something there. What are you trying to do? -

Re: Mod_Perl and MaxRequestsPerChild

2007-10-16 Thread Perrin Harkins
On 10/16/07, Clinton Gormley [EMAIL PROTECTED] wrote: Unless you have a really good reason to use worker, on linux, the recommended MPM is worker. I'm sure you meant to say prefork there. And I agree, if you're concerned about memory, don't use threads. Prefork will save you memory because of

Re: Mod_Perl and MaxRequestsPerChild

2007-10-16 Thread Perrin Harkins
On 10/16/07, Mark Maunder [EMAIL PROTECTED] wrote: My mod_perl app works with some fairly large data structures and AFAIK perl doesn't like to free memory back to the OS once it's allocated it, so the processes tend to grow for the first few hours of the server being up and then the plateau

Re: Mod_Perl and MaxRequestsPerChild

2007-10-16 Thread Perrin Harkins
On 10/16/07, Mark Maunder [EMAIL PROTECTED] wrote: I've benchmarked sqlite and it's a lot slower than my home rolled routines - mostly because of the intensive read/write/update/delete activity. SQLite is a typically slower than MySQL if you run the MySQL server on the same host (so it can use

Re: Mod_Perl and MaxRequestsPerChild

2007-10-16 Thread Perrin Harkins
On 10/16/07, Mark Maunder [EMAIL PROTECTED] wrote: Mornings are the busiest for us, so the following is not during peak. This is my current mod_status: 39.4 requests/sec - 114.4 kB/second - 2976 B/request 80 requests currently being processed, 170 idle workers Do you have a proxy server in

Re: Test Server

2007-10-15 Thread Perrin Harkins
On 10/15/07, jk jk [EMAIL PROTECTED] wrote: On our test server, each developer has his own checkout and his own URI. To eliminate the need to constantly restart the server, we installed Apache2::Reload. Unfortunately, we use a custom @ISA for each developer's copy, which Apache2::Reload

Re: Test Server

2007-10-15 Thread Perrin Harkins
On 10/15/07, jk jk [EMAIL PROTECTED] wrote: Sorry, 1 server under which all developers run a separate copy of the app using their own URI. I think you have your answer then: run a separate server for each developer. That's what I consider the normal way to do it, and it's easy. You don't even

Re: RFC: mod_perl PHP integration

2007-10-13 Thread Perrin Harkins
On 10/13/07, John ORourke [EMAIL PROTECTED] wrote: My simple CMS has become a bit of a behemoth, and I want to complete its transformation into Optimus Prime by allowing my developers to write plug-in modules in PHP, Java etc. The PHP and PHP::Include modules on CPAN already allow this. Is it

Re: Apache crashing

2007-10-10 Thread Perrin Harkins
On 10/10/07, Ian G. Tyndall [EMAIL PROTECTED] wrote: Apache version: 2.2.6 There was a thread earlier about that version not being an official apache release. If you mix and match binaries from multiple sources you are likely to have trouble. Have you tried the binaries that Randy provides?

Re: Apache2::SizeLimit Linux::Smaps on x86_64

2007-10-06 Thread Perrin Harkins
On 10/6/07, Max Kanat-Alexander [EMAIL PROTECTED] wrote: Yes, they really are using that much but nearly all of it is shared via copy-on-write, as far as I can tell. SizeLimit is supposed to be able to detect that situation on modern kernels if you have Linux::Smaps installed,

Re: redirect

2007-10-06 Thread Perrin Harkins
On 10/6/07, Eli Shemer [EMAIL PROTECTED] wrote: $r-headers_out-set(Refresh=0;url=index.pl); $r-headers_out; return Apache2::Const::OK; this method seems to be the best solution for me since 1. it works 2. I rather send an OK signal since it's not an actual warning/error but a valid

Re: [mp2] how to add data to posted form?

2007-10-06 Thread Perrin Harkins
On 10/6/07, newgaton new [EMAIL PROTECTED] wrote: i have a question. i am coding a program. i must change / add some data to posted form from browser . What are you trying to do? Using the parsed request data as a place to store your own global data is a bad idea. If you just want to

Re: Apache2::SizeLimit Linux::Smaps on x86_64

2007-10-05 Thread Perrin Harkins
On 10/5/07, Max Kanat-Alexander [EMAIL PROTECTED] wrote: I have an x86_64 machine running RHEL5 but with the mod_perl 2.0.3 from Fedora 7. Without Linux::Smaps installed, Apache2::SizeLimit thinks my processes are taking up 300MB and terminates them after every hit. (top

Re: Turning off caching

2007-10-04 Thread Perrin Harkins
On 10/4/07, Ian G. Tyndall [EMAIL PROTECTED] wrote: I've got an existing cgi project that I was hoping to get some performance improvements from mod_perl. Everything was going great until I ran into a caching issue. The script repeatedly performs the last action given regardless of the

Re: mod_perl success stories on ZDNet

2007-10-01 Thread Perrin Harkins
On 10/1/07, Carl Johnstone [EMAIL PROTECTED] wrote: Is it me, or does that just link through to here: http://www.oreillynet.com/digitalmedia/blog/2002/05/perl_success_story_termiumplus.html which doesn't require registration? Yes. Like I said, it's just content brought over from O'Reilly.

Re: set request params

2007-09-28 Thread Perrin Harkins
On 9/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: as i see there is no way to set request parameter in mod_perl2 What makes you think that? You can set the query string in mod_perl2. You can also do things like create an input filter to alter parameters on their way in. - Perrin

mod_perl success stories on ZDNet

2007-09-26 Thread Perrin Harkins
My Google alert sent this to me today: http://whitepapers.zdnet.com/abstract.aspx?docid=257555 - Perrin

Re: basic mp questions

2007-09-26 Thread Perrin Harkins
On 9/26/07, lists user [EMAIL PROTECTED] wrote: 1) what're the advantage of C modules than modperl modules?and what're the advantage of modperl modules than C's? You can just look at any Perl vs C discussion for the answer to this. from the documents I know that in Mymodule MIME::Base64 won't

Re: Sharing data between many requests

2007-09-26 Thread Perrin Harkins
On 9/26/07, André Warnier [EMAIL PROTECTED] wrote: - For portability and ease-of-installation reasons, I would like to avoid the usage of an external DBMS. I think you're making a mistake there. An RDBMS is the easiest way to achieve what you want. There is no simple way to share a Perl data

Re: $cnt doesn't work for me as advertised (fwd)

2007-09-26 Thread Perrin Harkins
On 9/26/07, Todd White [EMAIL PROTECTED] wrote: I'm wondering if anyone on this list would have any knowledge regarding the following Embperl question? I don't use Embperl, but it looks like you forgot to write all the code to loop through your array and increment $cnt. - Perrin

Re: PerlResponseHandler + mod_jk

2007-09-26 Thread Perrin Harkins
On 9/25/07, André Warnier [EMAIL PROTECTED] wrote: From what I understand of the documentation, by the time we get to the input filter, we are already at the Response stage, which means all the stuff about interpreting the headers, and assigning the request to mod_jk, is already done. No ?

Re: mod_jk and mod_perl combined - how to stack location handlers?

2007-09-25 Thread Perrin Harkins
On 9/25/07, Torsten Krah [EMAIL PROTECTED] wrote: mod_jk registers the same way for Locations like mod_perl does. Can i register 2 handlers or how can i solve this problem? I want to filter the output from mod_jk (SetHandler jakarte-servlet) - but i cannot set both in apache configuration

Re: PerlResponseHandler + mod_jk

2007-09-25 Thread Perrin Harkins
On 9/24/07, André Warnier [EMAIL PROTECTED] wrote: My::module would do something (or not) to the request, then it should let the (possibly modified) request go through, so that the mod_jk module can intercept it and re-direct it to Tomcat. Your should write your code as an input filter then,

Re: mod_proxy with light and heavy httpd - questions

2007-09-24 Thread Perrin Harkins
On 9/24/07, John ORourke [EMAIL PROTECTED] wrote: 1. I was initially put off mod_proxy by the docs ( http://perl.apache.org/docs/1.0/guide/strategy.html#Apache_s_mod_proxy ) that say mod_proxy has a difficult case is where you have DNS aliases that map to the same IP address. I then found the

Re: [Catalyst] CatalystX::CRUD

2007-09-23 Thread Perrin Harkins
On 9/23/07, Matt S Trout [EMAIL PROTECTED] wrote: Do you have any thoughts on how to paper over DBIC's ability to chain searches vs. the lack of that feature in RDBO? Isn't it primarily a way to build up your search criteria with multiple small method calls instead of one big one? It doesn't

Re: [Catalyst] CatalystX::CRUD

2007-09-23 Thread Perrin Harkins
On 9/23/07, Matt S Trout [EMAIL PROTECTED] wrote: You've never implemented a saved search function that allows you to 'search within' a saved search? That's usually not a difficult problem, since you already have a way to turn criteria from a web form into a search, and you're just adding one

Re: Problem with RequestRec and Headers

2007-09-23 Thread Perrin Harkins
On 9/23/07, jk jk [EMAIL PROTECTED] wrote: I've been trying to use Apache::Singleton::Request under the assumption that you're right about Class::Singleton being the crux of the issue. Unfortunately, I can't get it working under Apache2. Is there a different module for mp2/apache2 ? It

Re: Problem with RequestRec and Headers

2007-09-22 Thread Perrin Harkins
On 9/21/07, jk jk [EMAIL PROTECTED] wrote: sub printme{ my ( $self, $args ) = @_; my $r = Apache2::RequestUtil-request; $self-{r}-content_type('text/html'); print A Page of Rendered HTML\n; } You ask for $r from Apache2::RequestUtil here, but then you don't use it. That

Re: +ParseHeaders random corruption

2007-09-22 Thread Perrin Harkins
On 9/21/07, Mark Farver [EMAIL PROTECTED] wrote: Searching my harddrive, those strings appear in the mysql driver but we've seen chunks of the gpl, and other weird random data in those errors. It almost looks like a wild pointer. Maybe some kind of threading issue? Are you running the

Re: re-post : duplicate sockets with mp2, apache2, linux

2007-09-21 Thread Perrin Harkins
On 9/21/07, André Warnier [EMAIL PROTECTED] wrote: This is an Apache2 PerlAuthenHandler. How do I run that under the debugger ? http://www.perl.com/pub/a/2006/02/09/debug_mod_perl.html And if you haven't read it before: http://modperlbook.org/html/part4.html (I am not at all familiar with

Re: Newbie - Samples or Tutorials

2007-09-20 Thread Perrin Harkins
On 9/19/07, Aqua [EMAIL PROTECTED] wrote: Thanks and I have alreday seen these documentations. But actually I am looking for few simple materials (tutorials) which will help my team to learn mod_perl tricks and enable them to build simple application to start with. Hmm, that is exactly

Re: mod_perl - Intercepting an external Redirect

2007-09-20 Thread Perrin Harkins
On 9/19/07, Torsten Krah [EMAIL PROTECTED] wrote: Now i configured the otherhost to do a permanent redirect when /time/blog is requested. If i request this uri, the redirect is done like configured there - my filter does not get called. It's possible that mod_proxy doesn't cooperate with

Re: re-post : duplicate sockets with mp2, apache2, linux

2007-09-20 Thread Perrin Harkins
On 9/20/07, André Warnier [EMAIL PROTECTED] wrote: Question 2 : the external server with whom I communicate is a piece of code outside my control, and what it logs is a bit limited. I would gladly try to provide a simplified example of what is happening, but for that I would need another TCP

Re: Newbie - Samples or Tutorials

2007-09-19 Thread Perrin Harkins
On 9/18/07, Aqua [EMAIL PROTECTED] wrote: Someone please point me to a good tutorial or sample page. There's tons of documentation at http://perl.apache.org/, and there are multiple books available as well. If these aren't helping you, please tell us specifically what you need help with. -

Re: mod_perl - Intercepting an external Redirect

2007-09-19 Thread Perrin Harkins
On 9/19/07, Torsten Krah [EMAIL PROTECTED] wrote: So in short, i need to analyze the response of mod_proxy and if it matches some criteria, i want to do a internal redirect and serve some content under the requested url. The client should not see the external redirect the servlet triggers. I

Re: apr

2007-09-14 Thread Perrin Harkins
On 9/14/07, Eli Shemer [EMAIL PROTECTED] wrote: Once I add the apr object I get no error but I also receive no output on the screen. What are you trying to do? You can't use the mod_perl stuff in a command-line script outside of mod_perl. my $r=Apache2::RequestRec; What does that do? Is it

Re: Problem with perl-status memory usage

2007-09-14 Thread Perrin Harkins
On 9/14/07, RA Jones [EMAIL PROTECTED] wrote: Yes, user 'nobody' gets a display on 'cat /opt/lampp/lib/perl5/site_perl/5.8.7/Devel/Symdump.pm' Okay, can you try making your own mod_perl handler that loads Devel::Symdump and see if it works? - Perrin

Re: Problem with perl-status memory usage

2007-09-13 Thread Perrin Harkins
On 9/12/07, Richard Jones [EMAIL PROTECTED] wrote: /opt/lampp/bin/perl -e 'print join \n, @INC': No, print @INC from mod_perl, not from the command line. - Perrin

Re: Problem with perl-status memory usage

2007-09-13 Thread Perrin Harkins
On 9/13/07, Richard Jones [EMAIL PROTECTED] wrote: /opt/lampp/lib/perl5/site_perl/5.8.7/Devel/Symdump.pm Ok, the next thing to try is a permissions check. Become the user who you run your web server as (often nobody, but I don't know what XAMPP does) and try to read this file. - Perrin

Re: duplicate sockets ? mod-perl 2.0.2, apache 2.2

2007-09-13 Thread Perrin Harkins
On 9/13/07, André Warnier [EMAIL PROTECTED] wrote: In summary, the problem is that in the authen module I open a tcp connection to an external server *once*, but the server sees *two* connections being opened. Any chance you are running that code during startup, before the fork happens? -

Re: Problem with perl-status memory usage

2007-09-12 Thread Perrin Harkins
On 9/12/07, Richard Jones [EMAIL PROTECTED] wrote: I'm pretty sure the XAMPP Apache server is using its own Perl rather than the default /usr/bin/perl as I have a large number of dependencies for my mod_perl web apps which do not exist under the default perl lib path. Check it by finding the

Re: Listing Keys in Cache ??

2007-09-11 Thread Perrin Harkins
On 9/10/07, Tres Seaver [EMAIL PROTECTED] wrote: Cool idea: I was the lead for the project which funded adding ESI to squid3, and I'm in favor of multiple implementations. I'm just curious -- has anyone ever tested ESI to see if it improves performance? It seems unlikely that it will be

<    4   5   6   7   8   9   10   11   12   13   >