Re: [ANNOUNCE] mod_perl 2.0.5 (and DBIx::Class auto-generated code)

2011-02-21 Thread Perrin Harkins
On Sat, Feb 19, 2011 at 4:30 PM, Randolf Richardson rand...@modperl.pl wrote:        It's interesting to know that auto-generated code is a problem, and this is providing me with some insight into why some DBIx::Class users have been telling me that mod_perl (all versions) is so terrible (I

Re: [ANNOUNCE] mod_perl 2.0.5 (and DBIx::Class auto-generated code)

2011-02-21 Thread Perrin Harkins
On Sat, Feb 19, 2011 at 4:30 PM, Randolf Richardson rand...@modperl.pl wrote:        It's interesting to know that auto-generated code is a problem, and this is providing me with some insight into why some DBIx::Class users have been telling me that mod_perl (all versions) is so terrible (I

Fwd: [Mason] ANNOUNCE: Mason 2

2011-02-21 Thread Perrin Harkins
In case any of you Mason users on the mod_perl list aren't on the Mason list... - Perrin -- Forwarded message -- From: Jonathan Swartz swa...@pobox.com Date: Mon, Feb 21, 2011 at 11:16 AM Subject: [Mason] ANNOUNCE: Mason 2 To: Mason-Users List mason-us...@lists.sourceforge.net

Re: Retiring mod_perl 1.3.x

2011-02-19 Thread Perrin Harkins
I guess my question is how would this be any different from what we're doing now? Is anyone actively working on mod_perl 1 development, except when a security issue is raised? - Perrin On Sat, Feb 19, 2011 at 1:45 PM, Philip M. Gollucci pgollu...@p6m7g8.com wrote: In 2010, httpd 1.3.x official

Re: mod_perl 2.0.6

2011-02-17 Thread Perrin Harkins
On Wed, Feb 16, 2011 at 9:28 PM, Fred Moyer f...@redhotpenguin.com wrote: Another nit I have to pick (Torsten maybe this would be up your alley) is that @miyagawa posted a benchmark a while ago showing that his Starman pure perl server was slightly faster than mod_perl. No offense to Miyagawa,

Re: mod_perl 2.0.6

2011-02-17 Thread Perrin Harkins
On Thu, Feb 17, 2011 at 11:42 AM, David E. Wheeler da...@kineticode.com wrote: That's an assertion in need of evidence. It's only a guess, and I don't care enough to go through the code for evidence. I think people generally underestimate the complexity of HTTP and the difficulty of writing a

Re: Tuning response time from Apache server (using mod_perl handler)

2011-02-17 Thread Perrin Harkins
On Tue, Feb 15, 2011 at 3:15 PM, Jeff Anderson captvanha...@gmail.com wrote: I have a mod_perl handler (that is intended to run on a proxy server) Is this the only mod_perl running on the server? Normally people avoid running it on a proxy. - Perrin

Re: [ANNOUNCE] mod_perl 2.0.5

2011-02-12 Thread Perrin Harkins
On Sat, Feb 12, 2011 at 3:26 PM, Thomas den Braber tho...@delos.nl wrote: On linux I also had never any problem with Reload. But on Linux I always run Apache with prefork MPM (I have not tested with Worker MPM on Linux yet), on Windows there is only Worker MPM, can there be a relation between

Re: On memory consumption - request for comments

2011-02-11 Thread Perrin Harkins
Hi Torsten, Thanks for the thorough explanation. I used to be a big proponent of ASL, but I rely on it less since years ago when you pointed out that the shared sizes were not accurate on Linux. I know that Smaps helps with that, but it seems fairly expensive so I've avoided it. These days I

Re: On memory consumption - request for comments

2011-02-11 Thread Perrin Harkins
2011/2/11 Torsten Förtsch torsten.foert...@gmx.net: Also, these days RAM is not the bottleneck as it was 10 years ago. Agreed. I used to spend lots of time trying to reduce memory used by mod_perl projects, but now I don't even look at it unless I'm running into trouble. - Perrin

Re: DBI 1.61{1,6} + DBD::mysql 4.01{6,8} = segfault on Ubuntu 10.10 amd64? (reprise)

2011-02-08 Thread Perrin Harkins
Hi, I'm pointing at Class::XSAccessor since it's my only hint. Seems to me that DBIx::Class uses Class::XSAccessor through Class::Accessor::Grouped. That's the only use of Class::XSAccessor I could find in my perl directories. The first thing I'd suggest is making sure you have the latest

Re: DBI and Apache::DBI issues

2011-02-08 Thread Perrin Harkins
On Sun, Feb 6, 2011 at 4:44 PM, Max Pinton m...@designyourowncard.com wrote: Did earlier versions of Perl/mod_perl/DBI/Apache::DBI handle closures differently? No, not at all. This is a core Perl thing. I'm just curious why it used to work. It seems like DBI would reconnect a $dbh closure

Re: DBI and Apache::DBI issues

2011-02-08 Thread Perrin Harkins
On Tue, Feb 8, 2011 at 6:26 PM, Max Pinton m...@designyourowncard.com wrote: I checked $dbh-{mysql_auto_reconnect} and, as per the docs, it's 1 in a mod_perl script and 0 otherwise. Is there another place to look? It seems like something I'd really want to have on. Recommended practice is to

Re: Release Apache module

2011-01-14 Thread Perrin Harkins
Hi Kim, Are there published guidelines on how to package modules that are based on mod_perl? Yes, they are released on CPAN. http://perl.apache.org/docs/general/cpan_mod_dev/cpan_mod_dev.html The modules.apache.org site lists over 500 modules. Are any of these written in mod_perl? No, that

Re: Release Apache module

2011-01-14 Thread Perrin Harkins
On Fri, Jan 14, 2011 at 2:40 PM, Kim Goldov kgol...@gmail.com wrote: Thanks Perrin. Would it be appropriate to name and package our application as Apache::AuthAny or Apache2::AuthAny. I have not tested under Apache 1.3, and have no intent to do so. I'd go with Apache2::AuthAny then. - Perrin

Re: Dollar Self Storage (aka mod_perl children sharing/updating data on a schedule)

2011-01-13 Thread Perrin Harkins
Hi Jeff, I am looking to set up a mod_perl handler which keep track of the count of requests coming in. Each child process will store this data in local memory and after 5-10 minutes have passed, each child process will merge its data into a central database, the goal being that each child

Re: BerkeleyDB error

2011-01-02 Thread Perrin Harkins
Hi, I am able to execute that perl script successfully few times (less than 5 times) after every restart of Apache web server. After that I am getting following BerkeleyDB error message in log file of that script (i.e., run_command). Are you using Apache::Registry for this? It sounds as if

Re: perlRequestHandler

2011-01-02 Thread Perrin Harkins
This is a general apache configuration question, so you should be able to find some documentation about it. A common approach would be to attach your handler to / with a Location or LocationMatch block. - Perrin On Mon, Dec 27, 2010 at 2:53 PM, Maikel Punie maikel.pu...@gmail.com wrote: hey,

Re: I think AuthCookie(DBI) is causing segfaults?

2010-11-10 Thread Perrin Harkins
Which MPM are you using? - Perrin On Wed, Nov 10, 2010 at 6:16 PM, Tosh Cooey t...@1200group.com wrote: I have a standard mod_perl setup, application is a server and mysql is another. I use AuthCookieDBI

Re: I am facing one real question, maybe one potential issue of perl ftp component?

2010-11-08 Thread Perrin Harkins
Hello Peng, This mailing list is for discussion about development of the mod_perl module for Apache HTTPD. If you're looking for general Perl help, there are some resources listed here: http://perl.apache.org/docs/offsite/other.html#Perl - Perrin

Re: session module

2010-10-30 Thread Perrin Harkins
On Fri, Oct 29, 2010 at 4:23 PM, Lon Koenig l...@schnoggo.com wrote: Are these susceptible to the cleartext cookie silliness exposed by FireSheep? Well, Apache::Session doesn't handle cookies at all, so it's entirely up to you how you want to deal with it, and CGI::Session doesn't dictate

Re: session module

2010-10-29 Thread Perrin Harkins
On Fri, Oct 29, 2010 at 8:39 AM, Jeff Pang jeff_p...@sina.com wrote: I know CGI::Session well. But have been thinking does Apache::Session get better performance under modperl? I haven't measured it, but I doubt there's any significant performance difference. Don't be fooled by the CGI in

Re: How to kill locked queries

2010-10-14 Thread Perrin Harkins
On Thu, Oct 14, 2010 at 3:28 AM, Johan De Meersman vegiv...@tuxera.be wrote: That depends on the type of lock. If no lock type is specified, InnDB will prefer row locks, while MyISAM will do table locks. That may help, unless all your queries are trying to access the same rows anyway :-)

Re: [Mason] caching problem (it seems)

2010-10-09 Thread Perrin Harkins
On Fri, Oct 8, 2010 at 11:31 PM, Bruce R brsns...@illinois.edu wrote: I ran telnet and the home page only appeared after about a minute. Did you try it locally from the same machine that the server runs on? It would be good to eliminate the possibility of network or firewall issues. - Perrin

Re: Apache::Template / Apache::Request

2010-09-27 Thread Perrin Harkins
Hi Chris, On Mon, Sep 27, 2010 at 9:41 AM, Chris Ray ch...@rayjchris.co.uk wrote: Hello, I'm having issues installing Apache::Request which has been asked for when I tried to build Apache::Template. My recommendation at this point would be to stop using Apache::Template. It's not maintained

Re: [Mason] unable to read enviorment variables from .htaccess file

2010-09-24 Thread Perrin Harkins
Hi Scott, On Fri, Sep 24, 2010 at 9:44 AM, Scott Dolan sdo...@v12groupinc.com wrote: I am unable to read envoriment variables with mason from my  .htaccess file?   I am reading the varialbes like  my $value = $ENV{'SYSNAME'};  my .htaccess file is below Are you familiar with PerlPassEnv?

Re: Mixed Children on amd64

2010-09-21 Thread Perrin Harkins
On Mon, Sep 20, 2010 at 7:00 PM, Vincent Veyron vv.li...@wanadoo.fr wrote: When I use this new machine (it is currently disabled), my registered users on occasion will retrieve the data from the demo account instead of their own, as if the children spawned by the two apache2 processes got

Re: Strange process behavior

2010-09-21 Thread Perrin Harkins
On Tue, Sep 21, 2010 at 12:09 PM, Sharon Pattison scp02...@gmail.com wrote: We added some logging to several of our scripts to log when $r-args and $q-query_string do not match.  What we find for the bad process is that $r always has the correct data for the new request, but the value of

Re: Strange process behavior

2010-09-20 Thread Perrin Harkins
Hi, After adding a lot of logging to our logs, we discovered that the Apache request object will have the correct information, but the CGI object never seems to get the global values reset, so is always has the query_string of the request where things started to go wrong.  The process will

Re: Strange process behavior

2010-09-20 Thread Perrin Harkins
[ please reply-all to keep it on the list ] On Mon, Sep 20, 2010 at 4:07 PM, Sharon Pattison scp02...@gmail.com wrote: We would still like to track down the cause of the problem, if we can.  The process does indeed seem to become broken at a particular point and the CGI object has an incorrect

Re: Strawberry perl + mod_perl (call for testers)

2010-07-09 Thread Perrin Harkins
On Fri, Jul 9, 2010 at 12:12 PM, Michael Ludwig mil...@gmx.de wrote: Googling for mod_perl and Windows, one of the most prominent hits is this page from the mod_perl book, which might be somewhat outdated: That book was published in 2003 and is about apache 1 and mod_perl 1. If that's what

Re: [Mason] Eliminate whitespace between if elsif blocks?

2010-06-30 Thread Perrin Harkins
On Wed, Jun 30, 2010 at 10:47 AM, Furst, Carl carl.fu...@mlb.com wrote: This component crashes... Why? Because of whitespace between the end of the if block and the elsif. I wouldn't say it's a bug, but it would be convenient if we didn't have to decipher the following error message as you

Re: Deadlocking Apache::Session::MySQL

2010-06-15 Thread Perrin Harkins
Hi, I've come across a scenario where unchanged code works on 5.6/MP1 such that through various routes we twice tie a session object within a request's life.  Under the hood it seems to invoke get_lock(id) in the DB on when doing the tie. I'm not exeactly sure where but I assume the second

Re: perl caller(); where are the file names?

2010-06-14 Thread Perrin Harkins
Hi, We are trying to get a stack dump with names, but caller  returns what looks like references.  Can we use these to obtain a file name? This really depends on how Apache::ASP is written. Some tools, like Mason, set the filename to your template to make debugging easier. In this case, it

Re: how to avoid sub-query to gain performance

2010-06-02 Thread Perrin Harkins
On Wed, Jun 2, 2010 at 10:28 AM, Lin Chun franks1...@gmail.com wrote: *don't know it very clear, but i think is the problem of derived seems it take full scaning* Yes, it has no indexes so it isn't good for very large subqueries. You should create them as temporary tables instead and give them

Re: Using RAND to get a unique ID that has not been used yet

2010-05-28 Thread Perrin Harkins
On Fri, May 28, 2010 at 11:38 AM, Andre Matos andrema...@mineirinho.org wrote: I have a table that uses auto_increment to generate the Id automatically working fine. However, I need to create a new table where the Id must be a number generated randomly, so I cannot use the auto_increment.

Re: mod_perl memory...

2010-05-28 Thread Perrin Harkins
On Fri, May 28, 2010 at 7:00 AM, Nishikant Kapoor nkap...@webrachna.com wrote: http://www.gossamer-threads.com/lists/modperl/modperl/101225, I came up with the following sub to display the output but the memory usage continues to build up without limit when web pages are rendered. Any

Re: mod_perl and mass virtual hosting

2010-05-27 Thread Perrin Harkins
I second what Fred said. Also, you might consider just generating a config file for apache with perl and not running mod_perl in the server. I try to avoid using mod_perl for things that mod_rewrite and mod_proxy can handle. - Perrin On Thu, May 27, 2010 at 3:39 PM, Fred Moyer

Re: a better way to recognize module changes

2010-05-27 Thread Perrin Harkins
On Thu, May 27, 2010 at 11:11 AM, Michael Schout msch...@gkg.net wrote: My solution involved forking off a watcher process when the server starts up. Wouldn't it be simpler to start a separate daemon for this? You could launch it from apachectl if you don't want to run another command. -

Re: CGI pages not recompiling

2010-05-26 Thread Perrin Harkins
On Tue, May 25, 2010 at 5:32 PM, Jonas Bull m...@jonasbull.com wrote: It isn't always variable related...  But I can see where maybe upload new version=refresh page=get a stale process could be happening. It shouldn't, since the mtime check on the file happens at the beginning of handling the

Re: CGI pages not recompiling

2010-05-25 Thread Perrin Harkins
On Tue, May 25, 2010 at 10:22 AM, Jonas Bull m...@jonasbull.com wrote: During an active development cycle, with many changes and updates, perl cgi pages are getting stuck in the mod_perl. How are you running this code? Is it through ModPerl::Registry? Are there modules involved? - Perrin

Re: CGI pages not recompiling

2010-05-25 Thread Perrin Harkins
[ please keep it on the mailing list ] On Tue, May 25, 2010 at 2:25 PM, Jonas Bull m...@jonasbull.com wrote: httpd.conf has the following:        SetHandler              perl-script        PerlSendHeader       On        PerlHandler             Apache::Registry        Options                

Re: CGI pages not recompiling

2010-05-25 Thread Perrin Harkins
On Tue, May 25, 2010 at 4:01 PM, Jonas Bull m...@jonasbull.com wrote:  In the logs, I see notification of the changes to the script - sometimes.  Most of the time, actually.  But occasionally the process fails to catch the changes, which is annoying, but not as troubling as the case where the

Re: [Templates] Filter and Hashref

2010-05-24 Thread Perrin Harkins
On Mon, May 24, 2010 at 11:16 AM, E R pc88m...@gmail.com wrote: An alternative would be to implement myfilter as a virtual method and use: [% myhashref.myfilter %] I usually prefer to just pass a reference to a sub in the stash and use it in templates: [% myfilter(myhashref) %] - Perrin

Re: [Templates] INCLUDE, PROCESS, and template compilation

2010-05-20 Thread Perrin Harkins
On Thu, May 20, 2010 at 12:30 PM, Felipe Gasper (cPanel) fel...@cpanel.net wrote: The INCLUDE and PROCESS directives result in Perl code (in the compiled template) that goes to the filesystem and retrieves the INCLUDEd/PROCESSed template at runtime. Only if you've never run this template

Re: PerlModule lifetime / threads

2010-05-20 Thread Perrin Harkins
On Thu, May 20, 2010 at 11:17 AM, Some Guy teknos...@gmail.com wrote: If the MPM is threaded, a rwlock is used where the cleanup obtains the writelock and request handlers are obtaining a read lock. You don't need to do this. Variables are not shared between perl threads unless you make them

Re: Truoble getting Apache::AuthCookie to work on server

2010-05-20 Thread Perrin Harkins
On Thu, May 20, 2010 at 11:12 AM, Chris Bennett ch...@bennettconstruction.biz wrote: Well I'm pretty clueless. It works fine on nearly identical desktop at home. Won't work on server. That means the problem is either different versions on the one that doesn't work or a configuration mistake

Re: PerlModule lifetime / threads

2010-05-19 Thread Perrin Harkins
On Wed, May 19, 2010 at 4:37 PM, Some Guy teknos...@gmail.com wrote: if I have a ChildInitHandler, any changes I make to globals are not reflected in a HeaderParserHandler.  My globals do not have the :shared attribute - must they? Only if you're trying to update them from a different thread.

Re: Sinister variable caching problem with rand()

2010-05-16 Thread Perrin Harkins
On Sat, May 15, 2010 at 9:48 PM, Anthony Esposito tony.m.espos...@gmail.com wrote: The reason I am not using auto_increment is because the databases exist on a mysql cluster. The auto_increment counts would have to be maintained very carefully with multiple servers running the same database so

Re: Sinister variable caching problem with rand()

2010-05-15 Thread Perrin Harkins
On Sat, May 15, 2010 at 4:03 PM, Anthony Esposito tony.m.espos...@gmail.com wrote: In one of my programs I started to receive database errors for not having a unique id. I generate unique ids for each of the mysql lines that I add to the database. I realized that the perl variable $idNum was

Re: Cache Control

2010-05-13 Thread Perrin Harkins
[forgot to CC the list] On Thu, May 13, 2010 at 3:56 AM, Michel Jansen michel.jan...@web-ict.com wrote: Tha pages are cached by the browser.. Ok.  First, you don't need the err_headers_out call, because no_cache already does that for you. I'd suggest checking the headers you're sending with a

Re: Cache Control

2010-05-12 Thread Perrin Harkins
On Wed, May 12, 2010 at 7:21 PM, Michel Jansen michel.jan...@web-ict.com wrote: I wrote a mod-perl handler with Apache2::RequestRec and i am trying to control the caching of the pages. Caching by the browser, or by a proxy server in between? How are you testing to see if the page is cached? -

Re: Getting a / when regex should produce nothing

2010-04-27 Thread Perrin Harkins
On Tue, Apr 27, 2010 at 7:16 AM, André Warnier a...@ice-sa.com wrote: Now if I configure the first of these subs as a PerlAccessHandler and the second as a PerlResponseHandler, what happens to $lexical_mine ? This is actually import to point out: it makes no difference if you configure these

Re: Getting a / when regex should produce nothing

2010-04-27 Thread Perrin Harkins
On Tue, Apr 27, 2010 at 2:08 PM, Michael Ludwig mil...@gmx.de wrote: Variables declared with our are a funny hybrid between global variables, which are attached to a package, and lexical variables, which are attached to a scope. They are package variables (usually referred to as globals),

Re: Access log is erratic with my scripts

2010-04-27 Thread Perrin Harkins
On Tue, Apr 27, 2010 at 1:07 PM, Chris Bennett ch...@bennettconstruction.biz wrote: I do not see my scripts appearing properly in access log That probably means your scripts are crashing before they finish. You could use mod_log_forensic to find out more. - Perrin

Re: cache with CHI DBI driver and SQLite

2010-04-27 Thread Perrin Harkins
2010/4/27 Jiří Pavlovský j...@getnet.cz: I want to use CHI with SQLite backend for my app. Tested in cgi environment it worked ok, but under mod_perl it croaks in CHI DBI driver when trying to create the tables with mysterious no error error. Try running a small piece of code that opens a

Re: Access log is erratic with my scripts

2010-04-27 Thread Perrin Harkins
On Tue, Apr 27, 2010 at 3:48 PM, Chris Bennett ch...@bennettconstruction.biz wrote: I just realized the problem, since I was running a similiar script with one host non-SSL and the other SSL. The fact of access is only recorded in SSl logs, not access logs. I don't think that's true. My

Re: More CPU or More RAM?

2010-04-21 Thread Perrin Harkins
On Wed, Apr 21, 2010 at 11:14 AM, shamu...@gmail.com shamu...@gmail.com wrote: This is my current my.cnf setttings. Could anyone take a quick peek and tell me if I set anything awfully wrong? If your tables are MyISAM (not InnoDB), then 128MB is much too small for your key_buffer. You should

Re: non-stop generational modperl config update strategies?

2010-04-21 Thread Perrin Harkins
2010/4/21 Torsten Förtsch torsten.foert...@gmx.net: The mmapdb databases (single files) can be prepared off-line and then be copied to the destination. Then the old database (still mapped by its users) is invalidated by setting a flag. At the time of the next access the new version will be

Re: non-stop generational modperl config update strategies?

2010-04-21 Thread Perrin Harkins
2010/4/21 Torsten Förtsch torsten.foert...@gmx.net: no, MMapDB creates read-only variables that reference the mmapped block. It manipulates SvPVX directly Very interesting! I'll have to try it out as a storage backend for CHI. - Perrin

Re: non-stop generational modperl config update strategies?

2010-04-20 Thread Perrin Harkins
Hi Jeff, On Tue, Apr 20, 2010 at 8:18 PM, Jeff McCarrell jmcca...@akamai.com wrote: I would like to be able to reload the configuration state from new data without an apache restart. Given that you say it's only 10MBs, my best advice to you is to stop worrying about sharing, even it means

Re: Apache::DBI connect_on_init problem

2010-04-19 Thread Perrin Harkins
On Sat, Apr 17, 2010 at 4:42 PM, Chris Bennett ch...@bennettconstruction.biz wrote: You may also have other connections, but these will reconnect-disconnect each time For the record, Apache::DBI will work with any number of connections, keeping them persistent. It's also correct to call

Re: Compare with SQLite?

2010-04-19 Thread Perrin Harkins
On Mon, Apr 19, 2010 at 3:52 PM, Eric Bergen eric.ber...@gmail.com wrote: Just because they can both do the same basic functionality (store/retrieve a value) doesn't make them a substitute for each other or worth comparing. In addition, I would point out that SQLite is significantly slower

Re: Compare with SQLite?

2010-04-19 Thread Perrin Harkins
On Mon, Apr 19, 2010 at 4:40 PM, Dustin dsalli...@gmail.com wrote:  This is quite off-topic, but that's not true unless you configure one worse than the other and find filesystems and IO systems that don't work as well.  For example:  http://skitch.com/dlsspy/nh2qb/kvtest-results-on-linode

Re: mod_perl in larger scale environments

2010-04-16 Thread Perrin Harkins
On Thu, Apr 15, 2010 at 8:17 PM, Brad Van Sickle bvs7...@gmail.com wrote: What are you guys using to cluster the LVS servers?  Is that functionality native to LVS? There's a heartbeat system you can use for HA. If you look at the docs for LVS you'll see info on it. Also, I've come across

Re: modperl and comet?

2010-04-16 Thread Perrin Harkins
On Fri, Apr 16, 2010 at 4:37 PM, E R pc88m...@gmail.com wrote: Is there a way that a web request can be passed off to another process without tying up the Apache process? For instance, can the Apache process pass the file descriptors for the HTTP connection to another process which would free

Re: Make delete requests without impact on a database

2010-04-14 Thread Perrin Harkins
On Wed, Apr 14, 2010 at 10:22 AM, Dan Nelson dnel...@allantgroup.com wrote: Switch to InnoDB :) Seconded. No need to complicate your life with MyISAM workarounds when InnoDB solves this problem already. - Perrin -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To

Re: accessing environment variables set by other modules

2010-04-14 Thread Perrin Harkins
On Wed, Apr 14, 2010 at 5:17 PM, Chris Datfung chris.datf...@gmail.com wrote: What I'm looking for is a way to access the environment variables stored in the internal Apache structure. Any leads of how to access these environment variables is much appreciated. The subprocess_env info that Adam

Re: mod_perl in larger scale environments

2010-04-14 Thread Perrin Harkins
On Wed, Apr 14, 2010 at 5:33 PM, Brad Van Sickle bvs7...@gmail.com wrote: I didn't find much info on perlbal after a quick glance, I'll certainly give it a closer look, but my inital reaction is that I'm leary of replacing Apache on my web layer. I'm doing a few things with a few other modules

Re: Server Level Global Variable

2010-04-13 Thread Perrin Harkins
On Tue, Apr 13, 2010 at 2:23 PM, Shibi NS shibi...@gmail.com wrote: I have requirement to maintain variables at server level say a counter(something like server restart count) variable and time date, so if particular event(say die on request handler) this counter increments by one and time

Re: Authentication handlers in a proxy setting

2010-03-29 Thread Perrin Harkins
On Sun, Mar 28, 2010 at 3:41 PM, Dan Axtell daniel.axt...@snet.net wrote: What I don't understand is what to do about static directories that want to use the handlers via Directory directive, or via a local .htdocs file.  Does any such directory need to be forwarded to the dynamic server in

Re: get_handlers and set_handlers - purpose and use cases?

2010-03-24 Thread Perrin Harkins
On Tue, Mar 23, 2010 at 4:51 PM, Michael Ludwig mil...@gmx.de wrote: My desire to believe in the wisdom of the designers of the API has kept me busy thinking about this. Keep in mind that most of the Perl API is just exposing the apache module API to Perl. It wasn't necessarily put there with

Re: get_handlers and set_handlers - purpose and use cases?

2010-03-24 Thread Perrin Harkins
On Tue, Mar 23, 2010 at 6:03 PM, Michael Ludwig mil...@gmx.de wrote: Thanks. Found some good examples. Although it seems to me that for such a case you would rather call $r-handler( 'default-handler' ), which is a pendant to 'perl-script', 'cgi-script' and others. But unless I'm mistaken here,

Re: Usefulness of $r-notes and $r-pnotes (or $c)

2010-03-24 Thread Perrin Harkins
On Wed, Mar 24, 2010 at 6:32 AM, Michael Ludwig michael.lud...@xing.com wrote: This puts both the server process and the client to sleep for five seconds before returning. However, the server process is likely heavy-weight, whereas the client process is likely light- weight, and easily

Re: get_handlers and set_handlers - purpose and use cases?

2010-03-23 Thread Perrin Harkins
On Mon, Mar 22, 2010 at 7:50 PM, Michael Ludwig mil...@gmx.de wrote: What's the purpose and what are the use cases for the methods get_handler and set_handler available from Apache2::RequestUtil and Apache2::ServerUtil? These are explained with examples in the docs:

Re: get_handlers and set_handlers - purpose and use cases?

2010-03-23 Thread Perrin Harkins
On Tue, Mar 23, 2010 at 2:54 PM, Michael Ludwig mil...@gmx.de wrote:  # A list of handlers configured to run at the response phase:  my @handlers = @{ $r-get_handlers('PerlResponseHandler') || [] }; Now what do I do with that bunch of code references? I think there might be something useful

Re: get_handlers and set_handlers - purpose and use cases?

2010-03-23 Thread Perrin Harkins
On Tue, Mar 23, 2010 at 3:47 PM, Michael Ludwig mil...@gmx.de wrote: Well, you don't - unless you can tell from the code reference which handler it actually is. You could examine a coderef if you really needed to. You could also get the list of handlers, add something to it, and set it again.

Re: mod_perl memory

2010-03-17 Thread Perrin Harkins
2010/3/17 Torsten Förtsch torsten.foert...@gmx.net: The httpd process grows slowly but unlimited. Without the rflush() it grows slower but still does. With the rflush() its size increased by 100MB for an output of 220MB. Without it it grew by 10MB for an output of 2.3GB. I'd say it's a bug.

Re: Help with mod_perl

2010-03-16 Thread Perrin Harkins
On Tue, Mar 16, 2010 at 3:33 AM, Matty Ronald matty.r...@gmail.com wrote: Can any one please tell me how to disable perl's malloc in mod_perl? I donot want to recompile perl. Is there any way that i can disable perl's malloc in mod_perl only? No, sorry. Since mod_perl is just embedding your

Re: Killing oversized Perl processes

2010-03-15 Thread Perrin Harkins
On Sun, Mar 14, 2010 at 11:22 AM, Arthur Goldberg a...@cs.nyu.edu wrote: Perhaps you're referring to Apache's ErrorDocument (also described in Custom Error Response). Yes, that's what I meant. While that can run local Perl (in a new process of course) as in the example        ErrorDocument

Re: Killing oversized Perl processes

2010-03-11 Thread Perrin Harkins
On Thu, Mar 11, 2010 at 4:41 PM, ARTHUR GOLDBERG a...@cs.nyu.edu wrote: 2) Kill apache httpd processes occasionally, to control the effect of slow perl memory leaks. I'll do this by setting MPM Worker MaxRequestsPerChild to some modest value. (I'll try 100.) You definitely should be doing

Re: EXPLAIN says DEPENDENT SUBQUERY despite no free variables

2010-02-25 Thread Perrin Harkins
On Thu, Feb 25, 2010 at 2:48 AM, Dan Nelson dnel...@allantgroup.com wrote: IN is fine ( for example ... WHERE field1 IN (1,2,3,4,5,6) is extremely efficient); Yes, I meant to say IN/NOT IN subqueries, not value lists. it's subqueries in general that are killers. Subqueries in the FROM clause

Re: [cgiapp] Dancer

2010-02-25 Thread Perrin Harkins
On Thu, Feb 25, 2010 at 6:51 PM, P Kishor punk.k...@gmail.com wrote: So, my question is thus -- how is Dancer different from CGI::App, and why should I use the latter instead of the former? I asked this not lightly because I have many years of experience invested in C::A, but Dancer truly

Re: EXPLAIN says DEPENDENT SUBQUERY despite no free variables

2010-02-24 Thread Perrin Harkins
On Wed, Feb 24, 2010 at 10:11 AM, Yang Zhang yanghates...@gmail.com wrote: Any ideas on how to optimize this by convincing mysql to see the independence use a const join? http://www.xaprb.com/blog/2006/04/30/how-to-optimize-subqueries-and-joins-in-mysql/ You need to rewrite as a join or use a

Re: Perl + DBD-Oracle, problems with encoding when PerlHandler Apache::Registry is in use

2010-02-19 Thread Perrin Harkins
On Fri, Feb 19, 2010 at 5:47 AM, michael kapelko korn...@gmail.com wrote: When invoked directly by the shell or in web page WITHOUT PerlHandler Apache::Registry, the UTF-8 encoded string in Russian is printed just fine. But when PerlHandler Apache::Registry is used, only are printed in

Re: Trying to avoid bulk insert table locking

2010-02-06 Thread Perrin Harkins
On Sat, Feb 6, 2010 at 12:11 PM, D. Dante Lorenso da...@lorenso.com wrote: I have a system that imports about 40 million records every 2 days into a single table in MySQL.  I was having problems with LOAD DATA CONCURRENT LOCAL INFILE where the table I was importing into would lock until the

Re: global variable

2010-02-03 Thread Perrin Harkins
On Wed, Feb 3, 2010 at 2:20 AM, André Warnier a...@ice-sa.com wrote: m...@normalperson.e4ward.com wrote: Hello, Is there a method to setup a global variable for all modperl child processes? Also this variable will be updated sometime, when it get updated, all processes will know it. As a

Re: unsubscribe

2010-01-29 Thread Perrin Harkins
Hey gmail users, if you click on the show details link in gmail it will give you a link to unsubscribe. For anyone not on gmail, the mail's headers include the following: List-Unsubscribe: http://groups.google.com/group/memcached/subscribe?hl=en,

Re: output filter

2010-01-28 Thread Perrin Harkins
On Thu, Jan 28, 2010 at 10:27 AM, m...@normalperson.e4ward.com wrote: I want to add some Expire: and Cache-Control: headers to make downstream cacheserver to cache the pages. Though they are dynamic pages, but I think they are safe to be cachable. If you're generating them with mod_perl, you

Re: mod_perl2 + fork + DBI = Chaos

2010-01-27 Thread Perrin Harkins
On Wed, Jan 27, 2010 at 8:22 AM, Tosh Cooey t...@1200group.com wrote: In case anyone else is ever in the same situation I would like to tell them that mod_perl(1|2) + fork = bad idea, and don't even THINK about throwing DBI into the mix. I don't want people to think this doesn't work. It does

Re: writing CGI::Session sessions only when necessary

2010-01-27 Thread Perrin Harkins
On Tue, Jan 26, 2010 at 7:42 PM, Jonathan Swartz swa...@pobox.com wrote: On our site we create a new CGI::Session object at the beginning of the request, so that it can be used anywhere in the web code. However, sessions are rarely written to, so at the end of the request I'd like to avoid

Re: mod_perl2 + fork + DBI = Chaos

2010-01-25 Thread Perrin Harkins
On Mon, Jan 25, 2010 at 2:41 PM, Tosh Cooey t...@1200group.com wrote: Just to follow up on this before anyone spends any time caring about it, the seg faults could also be because one of the zombie apache2 processes I've spawned like a Gremlin is answering the request and well... I don't think

Re: mod_perl2 + fork + DBI = Chaos

2010-01-25 Thread Perrin Harkins
On Mon, Jan 25, 2010 at 3:48 PM, Tosh Cooey t...@1200group.com wrote: Thanks Perrin, the forking, my child got a PID of 30033 and then afterwards when I checked the processes (ps) for 30033 I see: [apache2] defunct Is that what's supposed to happen? After you call exit? No. It should be

Re: Selecting, Inserting and Deleting data

2010-01-21 Thread Perrin Harkins
On Thu, Jan 21, 2010 at 7:15 AM, Krishna Chandra Prajapati prajapat...@gmail.com wrote: 1. Inserted data into a table A by user. 2. Selecting data from table A inserting data to table B after applying some rules(update). 3. Deleting data from table A. 4. Selecting data from table B using some

Re: [Templates] Fragment caching

2010-01-21 Thread Perrin Harkins
On Thu, Jan 21, 2010 at 4:26 AM, Tobias Kremer tobias.kre...@gmail.com wrote: I'm aware of Template::Plugin::Cache, but I don't like the fact that fragments I'd like to cache have to be included. I'd rather have fragments take care of caching themselves, like Mason's cache_self() method. I

Re: [Templates] passing information back from templates

2010-01-21 Thread Perrin Harkins
On Thu, Jan 21, 2010 at 5:17 PM, E R pc88m...@gmail.com wrote: When using a simple hash for the template variables object, it doesn't seem that a template can modify it, e.g. Is this a physics experiment? The data changes when it is observed? Seriously, it sounds like you're trying to do

Re: When using FOR UPDATE whole the table seems to lock instead of selected row

2010-01-15 Thread Perrin Harkins
On Fri, Jan 15, 2010 at 2:54 AM, Johan Machielse johan.machie...@kpnplanet.nl wrote: The problem is that multiple users can read and update the same field simultaneously (worse case) which could lead to unpredictable problems. There are other ways to do handle most cases. For example: UPDATE

Re: Apache Blank Pages

2010-01-14 Thread Perrin Harkins
On Wed, Jan 13, 2010 at 5:52 PM, cfaust-dougot cfa...@doyougot.com wrote: Below is what I currently call in startup, by any chance does anything pop out at you? Nope, those all look fine to me. Other wise I'll start going though them one at a time. A binary search is good for this sort of

Re: Caveats to using Perl Sections for server configuration?

2010-01-14 Thread Perrin Harkins
, Perrin Harkins wrote: On Wed, Jan 13, 2010 at 3:22 PM, Boysenberry Payne boysenbe...@habitatlife.com wrote: I'm using Perl blocks in my apache conf files for early server configuration. I remember reading someone on this list saying they wouldn't use Perl Sections at all. That might have

Re: Apache Blank Pages

2010-01-14 Thread Perrin Harkins
On Thu, Jan 14, 2010 at 6:20 PM, cfaust-dougot cfa...@doyougot.com wrote: Long story short, I'm in the process of moving to another machine. I wanted to ask you though, is there any modules I should stay away from loading in startup.pl? Should DBI and DBD be loaded within each script and not

<    1   2   3   4   5   6   7   8   9   10   >