[mp2] Overwrites and truncates Apache process name

2014-08-11 Thread Jonathan Wiltshire
rl2/+bug/1008385 3: https://bugzilla.redhat.com/show_bug.cgi?id=782369 4: https://bugzilla.redhat.com/attachment.cgi?id=567625&action=diff Thanks, -- Jonathan Wiltshire Tiger Computing Ltd "Linux for Business" Tel: 01600 483 484 Web: http://www.tiger-computing.co.uk Follow us on Fa

Efficiently monitoring httpd children and signalling those using too much memory/cpu

2011-08-22 Thread Jonathan Swartz
We use Apache/mod_perl 2 and occasionally get a child httpd process that spins out of control, either consuming ever-increasing amounts of memory or max cpu. Usually due to an infinite loop or other bug in a specific part of the site - this sort of thing happens. I would like to monitor for suc

Re: How do you use mod_perl for your web application?

2011-06-20 Thread Jonathan Swartz
We use Mason 1.x inside a custom web framework (which I've recently gotten permission to release open-source), under mod_perl/Apache 2. Working on a transition to Plack and Mason 2, but we've already integrated the superior stack traces and debug console from Plack middleware. On Jun 15, 2011,

Re: [Mason] ANNOUNCE: Mason 2

2011-02-25 Thread Jonathan Swartz
Thanks André. I haven't touched the site in a while but it's due for an overhaul (and conversion to Mason 2) so will hopefully fix things then. On Feb 24, 2011, at 12:56 PM, André Warnier wrote: > This being said, I would like to report a small bug, I believe more of the > web server than Mason

Re: [Mason] ANNOUNCE: Mason 2

2011-02-24 Thread Jonathan Swartz
ote: > oops is there any big player using Mason these days? > > On Tue, Feb 22, 2011 at 2:24 AM, Perrin Harkins wrote: >> In case any of you Mason users on the mod_perl list aren't on the Mason >> list... >> >> - Perrin >> >> -- Forward

Re: [Mason] ANNOUNCE: Mason 2

2011-02-24 Thread Jonathan Swartz
rin Harkins wrote: >>> In case any of you Mason users on the mod_perl list aren't on the Mason >>> list... >>> >>> - Perrin >>> >>> -- Forwarded message -- >>> From: Jonathan Swartz >>> Date: Mon, Feb

Re: ANNOUNCE: Mason 2

2011-02-22 Thread Jonathan Swartz
On Feb 22, 2011, at 6:55 AM, Phil Carmody wrote: > --- On Tue, 2/22/11, Jonathan Swartz wrote: >> I'm pleased to >> announce Mason 2, the first major version of Mason in ten >> years: >> >>http://search.cpan.org/perldoc?Mason >> >> Mason

ANNOUNCE: Mason 2

2011-02-21 Thread Jonathan Swartz
I'm pleased to announce Mason 2, the first major version of Mason in ten years: http://search.cpan.org/perldoc?Mason Mason is a templating framework for generating web pages and other dynamic content. Mason 2 has been rearchitected and reimplemented from the ground up, to take advantage of m

Re: a better way to recognize module changes

2010-05-27 Thread Jonathan Swartz
On May 27, 2010, at 1:04 PM, Perrin Harkins wrote: On Thu, May 27, 2010 at 11:11 AM, Michael Schout 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 do

Re: writing CGI::Session sessions only when necessary

2010-01-27 Thread Jonathan Swartz
On Jan 27, 2010, at 2:45 PM, Perrin Harkins wrote: On Tue, Jan 26, 2010 at 7:42 PM, Jonathan Swartz 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

Re: [mp2] mod_perl closes apache's stdin and/or stdout

2010-01-26 Thread Jonathan Swartz
This never got a response. Which surprises me, since I think it is a legitimate and nasty bug. So is the silence because 1) people don't think it's really a bug 2) people glazed over while reading the description 3) ?? Thanks :) Jon On Jan 8, 2010, at 6:15 AM, Jonathan Swartz w

writing CGI::Session sessions only when necessary

2010-01-26 Thread Jonathan Swartz
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 actually writing out a new session to backing store unless a param actual

[mp2] mod_perl closes apache's stdin and/or stdout

2010-01-08 Thread Jonathan Swartz
(A continuation of: http://marc.info/?l=apache-modperl&m=117507879929572&w=2 http://marc.info/?l=apache-modperl&m=119072925228529&w=2 ) I've just spent many frustrating days debugging a situation that turned out to be caused by mod_perl's closing of file descriptor 1 (STDOUT). Here's the re

Announcing: Server::Control and apachectlp

2009-11-23 Thread Jonathan Swartz
Server::Control allows you to control servers ala apachectl, but with better diagnostics and many more features. It includes both a drop-in replacement for apachectl (”apachectlp”) and an OO interface. Though it was designed with Apache in mind, there are also subclasses for HTTP::Server::S

Re: apache 2 reloads needed?

2009-11-03 Thread Jonathan Vanasco
On Nov 3, 2009, at 4:27 AM, André Warnier wrote: I see that you mention mysql. This probably means DBI. I think you need to be a bit careful with DBI and Apache::Reload. I seem to recall that there are some particularities there (Probably in relation to permanent cached database connection

Re: Plack

2009-10-15 Thread Jonathan Vanasco
On Oct 15, 2009, at 1:36 PM, Adam Prime wrote: I haven't played with it, but i have read a bunch of Miyagawa's blog posts about it. I do know that Jeff Horwitz is planning to support WSGI in mod_parrot / mod_perl 6, but i don't know exactly what that means ;) Yeah I heard about that too

Re: Plack

2009-10-15 Thread Jonathan Vanasco
On Oct 15, 2009, at 10:01 AM, Issac Goldstand wrote: Whaddaya know... Ironically, this might have saved Plone at my workplace had I known that this was on the way. We were looking at writing custom WSGI components in Python and shuddering (well, I was shuddering) I'm 80% Python now, so

Plack

2009-10-15 Thread Jonathan Vanasco
Has anyone here played with Plack yet ? ( http://plackperl.org/ ) It's about a week old or so publicly, but I'm sure a few of you folks here were privvy to a preview... // Jonathan Vanasco e. jonat...@2xlp.com w. http://findmeon.com/user/jvanasco blog. http://destruc

Re: double mod_perl initialization

2009-10-02 Thread Jonathan Swartz
On Oct 2, 2009, at 3:25 PM, Perrin Harkins wrote: On Fri, Oct 2, 2009 at 5:54 PM, Jonathan Swartz wrote: Ok, one more question. Disregarding graceful for the moment - is HUP completely reliable with mod_perl at this point, or is there still a reason (as there once supposedly was) to do a

Re: double mod_perl initialization

2009-10-02 Thread Jonathan Swartz
On Sep 25, 2009, at 10:48 AM, Clinton Gormley wrote: If I don't ever plan to use graceful restarts, and I believe that smaller restart times are an unqualified Good, is there any reason why I shouldn't ALWAYS use a script like the above? And is there any way to avoid PerlModule modules from

Re: double mod_perl initialization

2009-09-25 Thread Jonathan Swartz
Nope, I still get the error in the logs. It just takes a few seconds to show up. On Sep 25, 2009, at 11:20 AM, Clinton Gormley wrote: Hm. No compile errors would be bad. But I put an error in one of my modules (that only gets loaded the second time) and started apache, and got error log out

Re: double mod_perl initialization

2009-09-25 Thread Jonathan Swartz
There's only one small gotcha that I've found, and that occurs in this situation: - apache isn't running - you do : apachectl restart - there is a compile time bug, and apache dies The gotcha is that you don't get any STDERR or log output in this situation. However, you're only ever likely to

double mod_perl initialization

2009-09-25 Thread Jonathan Swartz
I was looking into why our server's restarts take so long, and I finally remembered that Apache runs its initialization step twice on startup (http://tinyurl.com/krr25). This means that my startup.pl is loaded twice, along with any modules that it loads. So I moved startup.pl to startup_rea

Re: a better way to recognize module changes

2009-09-11 Thread Jonathan Swartz
On Sep 11, 2009, at 3:53 PM, Fred Moyer wrote: On Fri, Sep 11, 2009 at 3:37 PM, Jonathan Swartz wrote: On Fri, Sep 11, 2009 at 3:11 PM, Jonathan Swartz wrote: It seems like it's available separately in Apache-Reload distribution: http://cpan.uwinnipeg.ca/dist/Apache-Reload

Re: a better way to recognize module changes

2009-09-11 Thread Jonathan Swartz
On Fri, Sep 11, 2009 at 3:11 PM, Jonathan Swartz wrote: It seems like it's available separately in Apache-Reload distribution: http://cpan.uwinnipeg.ca/dist/Apache-Reload But it's already pretty much a straw-man option for me. :) Problem: some modules fail to reload properly.

Re: a better way to recognize module changes

2009-09-11 Thread Jonathan Swartz
ck in as dependencies? On Sep 11, 2009, at 2:52 PM, Perrin Harkins wrote: On Fri, Sep 11, 2009 at 5:26 PM, Jonathan Swartz wrote: This is the nicest solution I've seen so far. The only problem I can see is its performance - each potentially-changing module has to be loaded on eac

Re: a better way to recognize module changes

2009-09-11 Thread Jonathan Swartz
On Sep 11, 2009, at 2:52 PM, Perrin Harkins wrote: On Fri, Sep 11, 2009 at 5:26 PM, Jonathan Swartz wrote: This is the nicest solution I've seen so far. The only problem I can see is its performance - each potentially-changing module has to be loaded on each request. ** How long

Re: a better way to recognize module changes

2009-09-11 Thread Jonathan Swartz
as of mod_perl-2.0.4, Apache2::Reload is gone (so you can remove that from your list of options). -- Devin On Fri, 2009-09-11 at 14:26 -0700, Jonathan Swartz wrote: I'm thinking about an improved solution to recognizing module changes in a running server, without restarting the server. These

a better way to recognize module changes

2009-09-11 Thread Jonathan Swartz
I'm thinking about an improved solution to recognizing module changes in a running server, without restarting the server. These are the solutions I know about: 1) Apache2::Reload / Module::Reload These check whether modules have changed on each request, and if so, clear their symbols and re

Re: getting $r and env to reflect external ports

2009-08-14 Thread Jonathan Swartz
> We've got a bunch of legacy code that uses $ENV{SCRIPT_URI}, > $ENV{SERVER_PORT}, $r->server->port and the like to generate external > redirects. > If these are really external redirects, they must happen through a "Location:" response header, no ? In that case, what about leaving your code a

getting $r and env to reflect external ports

2009-08-14 Thread Jonathan Swartz
We've got a bunch of legacy code that uses $ENV{SCRIPT_URI}, $ENV{SERVER_PORT}, $r->server->port and the like to generate external redirects. This has worked fine til now, but now we are moving to a system where our external port != our internal port - the load balancer is going to forwar

Linux::Smaps on RHEL

2009-07-21 Thread Jonathan Swartz
I'm running into the problem using Linux::Smaps on RHEL with an Apache server on port 80. Namely, that the httpd child doesn't have permissions to look at the smaps file. Linux::Smaps: Cannot open /proc/20074/smaps: Permission denied or Linux::Smaps: Cannot open /proc/self/smaps:

Re: a better apachectl?

2009-06-05 Thread Jonathan Swartz
Yup, I'm trying to figure out a way to integrate generation of conf files, since that's another common activity, I'm sure. Ok, I'll put it out there. Jon On Jun 5, 2009, at 3:18 PM, Perrin Harkins wrote: On Fri, Jun 5, 2009 at 5:21 PM, Jonathan Swartz wrote: Over the

Re: a better apachectl?

2009-06-05 Thread Jonathan Swartz
httpd, obviously I'm guessing that my code, with subclassing, could work equally well for apache, lighttpd, and HTTP::Server::Simple. Jon On Jun 5, 2009, at 2:21 PM, Jonathan Swartz wrote: Over the years I've developed (as I'm sure many have :)) a small home-grown replacement fo

a better apachectl?

2009-06-05 Thread Jonathan Swartz
Over the years I've developed (as I'm sure many have :)) a small home- grown replacement for apachectl, to make start/stop/restart easier. It's in library form, and among other things it * detects whether the server is actually running, by contacting the port * waits to make sure the server st

Unsubscribe

2009-03-10 Thread Jonathan Mangin
Can someone tell me where to go to unsubscribe? Thanks.

Re: dealing with empty field names in query

2009-02-23 Thread Jonathan Vanasco
On Feb 13, 2009, at 5:11 PM, Joe Schaefer wrote: We had to stop using libapreq2 for cookies, because we found out that wordpress (being a shoddy piece of software) was generating invalid cookies at times. when apreq encountered it, it segfaulted. What version of apreq was this? And did yo

Re: dealing with empty field names in query

2009-02-13 Thread Jonathan Vanasco
On Feb 13, 2009, at 3:38 PM, André Warnier wrote: The management part of me says that if you sell shoddy merchandise to people, they are going to come back and hit you with it. Presumably, if you get such kind of posted data from a form, it is because you sent a shoddy form to the browser, which

Re: dealing with empty field names in query

2009-02-13 Thread Jonathan Vanasco
On Feb 6, 2009, at 4:58 PM, Phil Carmody wrote: In those name/value pairs, according to HTML 4 at least, the names must begin with a letter [A-Za-z]. The empty string does not do so. Garbage in, garbage out. Part of me agrees with that philosophy. Another part of me is more practical.

Re: Any success with storing photos in a database?

2008-11-27 Thread Jonathan Vanasco
chiming in a few months late... from my experience, and responding to some thoughts in the thread: - storing photos in mysql/pgsql is not a good idea. aside from misc issues that always arise, you end up stressing the db through searches - the better way would be to store photo meta-data in

Re: Share perl variables between apache process

2008-09-25 Thread Jonathan Vanasco
was investigating some other option, but i think i'l use it :) Be careful, IPC::Shareable is pretty slow, especially for large chunks of data. In most cases, an RDBMS or a dbm file ends up being faster. also memcached can work well here // Jonathan Vanasco w. http://findmeon.com

Re: mod_perl BOF at YAPC::NA

2008-06-09 Thread Jonathan Vanasco
On Jun 5, 2008, at 3:09 PM, Perrin Harkins wrote: Count me in. This should be fun. Work on your mod_php jokes. does anyone even use that anymore ? (a serious question)

Re: [OT] Solaris + Apache 2.2 / PHP 5 cluster config help

2008-05-22 Thread Jonathan Vanasco
On May 22, 2008, at 1:14 PM, Perrin Harkins wrote: The module I'm presenting at YAPC::NA and OSCON this year, DBIx::Router, will make it easier to add this kind of partitioning after the fact. It lets you set up rules to choose which database to send a query to. When I have a public prototype

Re: [OT] Solaris + Apache 2.2 / PHP 5 cluster config help

2008-05-21 Thread Jonathan Vanasco
erour ram and APC .5GB. then run the rest of the box on memcached. its not worth running replicants on your http machines - you're better off tossing the CPU to php and the RAM to memcached. // Jonathan Vanasco w. http://findmeon.com/user/jvanasco

Re: refactoring client's decision

2008-05-13 Thread Jonathan Vanasco
On May 11, 2008, at 2:52 AM, Marc Lambrichs wrote: Here's my view: they create a parent App::Handler and in every virtual host they create a Site::Handler which has App::Handler as base. My first guess is that under mod_perl you don't know which Site::Handler will be called. Ofcourse, at

Anyone here building Social Media Apps ( in mod_perl or otherwise ) ?

2008-05-09 Thread Jonathan Vanasco
If so, catch me offlist. This will become relevant to the list next week, i promise ;) // Jonathan Vanasco w. http://findmeon.com/user/jvanasco e. [EMAIL PROTECTED] | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | FindMeOn.com - The

Re: Many handlers in the same module

2008-03-28 Thread Jonathan Vanasco
On Mar 28, 2008, at 3:11 PM, Colin Wetherbee wrote: Care to add one, just to see what happens? :) You know you've been working too much on the Business Side when you stop testing stuff like that automatically. sigh... ok... it works if i have package MyApp; sub handler {} sub handler_

Re: Many handlers in the same module

2008-03-28 Thread Jonathan Vanasco
On Mar 27, 2008, at 8:43 PM, Colin Wetherbee wrote: Hm. Yep. ResponseHandler can interpret the ::ResponseHandler part as being a function within Handler.pm, but that does *not* work for InitHandler. i have it set up using PerlFixupHandler PerlResponseHandler PerlC

Re: Many handlers in the same module

2008-03-27 Thread Jonathan Vanasco
On Mar 26, 2008, at 9:47 AM, Colin Wetherbee wrote: We seem to have solved the problem, but for the sake of conversation... When I've tried that in the past, mod_perl would always look for handler() within JetSet::Handler::AccessHandler.pm. Wow. I've got 5 sites in production right now..

Re: Many handlers in the same module

2008-03-25 Thread Jonathan Vanasco
On Mar 19, 2008, at 2:22 PM, Colin Wetherbee wrote: PerlAccessHandler JetSet::Handler->AccessHandler PerlResponseHandler JetSet::Handler->ResponseHandler sub ResponseHandler { my (undef, $r) = @_; # ... } what about... PerlAccessHandler JetSet::Handler::AccessHandler sub AccessHandler

Re: Amazon

2008-02-29 Thread Jonathan Vanasco
On Feb 26, 2008, at 8:29 PM, J. Peng wrote: coding from perl to python is easy,at least it's easy for me. but,as many guys have said to me, from python to perl is not easy. perl's many features,like the rich built-in variables and context,are not so easy to be accetable by newbies. I think th

Re: mod_perl PPM missing Apache2::Reload

2008-02-25 Thread Jonathan Vanasco
On Feb 25, 2008, at 1:57 AM, Dami Laurent (PJ) wrote: Hi Randy, Thanks a lot, seems to work fine (but I didn't test very extensively yet). Just one small bug in the PPM : the ppd file mentions Apache2::Reload, but this is not included in the tar.gz file. So I had to manually install it.

Amazon

2008-02-22 Thread Jonathan Vanasco
g to save on hardware scaling, developer scaling, is the codebase just unmanageable? this would be a costly transition // Jonathan Vanasco w. http://findmeon.com/user/jvanasco e. [EMAIL PRO

Re: [MP2][QUESTION]Session and inactivity

2008-02-14 Thread Jonathan Vanasco
cessing, and write a session expiry system in an event driven framework ( or even use cron/ at jobs to trigger shell scripts ) // Jonathan Vanasco w. http://findmeon.com/user/jvanasco e. [EMAIL PROTECTED] | Founder/CEO - FindMeOn, Inc. | - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: [MP2][QUESTION]Session and inactivity

2008-02-08 Thread Jonathan Vanasco
On Feb 7, 2008, at 2:41 PM, Perrin Harkins wrote: Sure, it's a building block. You build the expiration part on top of it. Either you use a timestamp column in your database or you update a timestamp in the session data. Then you check that to see if too much time has passed. You can certai

Re: How to store keys generated from Crypt::RSA module??

2008-01-22 Thread Jonathan Vanasco
On Jan 6, 2008, at 12:37 PM, Kurt Hansen wrote: I'm using Crypt::RSA module for generating public & private keys. Now the problem is that when I'm storing the keys in the database, and again bringing them to do the signature or verification the Crypt::RSA module is unable to understand the

Re: Can't use Crypt::RSA

2007-12-28 Thread Jonathan Vanasco
try using Crypt::OpenSSL::RSA its a little faster. there is a memory leak in it, but the max- requests directive will make it pretty inconsequential. On Dec 28, 2007, at 5:37 AM, arnab wrote: Hi Everyone, I'm using a small script to use the Crypt::RSA module under windows using Active

Re: Find the values of Apache2::Const

2007-12-23 Thread Jonathan Vanasco
On Dec 22, 2007, at 11:53 AM, Adam Prime wrote: I believe in this situation what you want is $r->status (Apache::Const::HTTP_OK). HTTP_OK and OK are not the same thing at all. It's a mean trick... one is an HTTP constant, the other is a mod_perl constant ( ie HTTP_ prefix and no prefix )

Re: re-factoring 'print' for $r

2007-12-23 Thread Jonathan Vanasco
On Dec 23, 2007, at 1:53 AM, [EMAIL PROTECTED] wrote: I think the print magic only happens if you are running under SetHandler perl-script, and not if you are running under SetHandler modperl. Ah, that seems to be it. I never used perl-script ; I went straight for modperl when i did the

Re: re-factoring 'print' for $r

2007-12-22 Thread Jonathan Vanasco
On Dec 22, 2007, at 4:47 PM, Perrin Harkins wrote: By the way, if you just call print() normally it should all be grabbed by mod_perl anyway. Is there some reason you need to call $r->print() instead? I thought it only does that if you bind STDOUT the right way on compile time, otherwise it

Re: register_cleanup

2007-12-19 Thread Jonathan Vanasco
I'm surprised you're even getting a redirect, this doesn't make sense to me. the MP cleanup handler is supposed to happen after the request is served / client connection is terminated (docs below) if you're trying to do a redirect after processing, try a stacked handler http://perl.apac

Re: Flex

2007-12-05 Thread Jonathan Vanasco
On Dec 3, 2007, at 6:30 PM, Boysenberry Payne wrote: Our system could benefit a lot from being able to compile SWFs on the fly; right now they're all static files loaded dynamically. I could see making them dynamically as needed, while still serving up the static renditions. We do some d

Re: Flex

2007-12-05 Thread Jonathan Vanasco
Ext is good. Personally, I like the MochiKit system (though a good friend maintains it). A few of the big-guys use it for all their internal systems. It has a neat dev enviroment - even has an interpreter for you to dev in. http://mochikit.com/examples/interpreter/index.html O

Re: Flex

2007-12-05 Thread Jonathan Vanasco
On Dec 3, 2007, at 6:30 PM, Boysenberry Payne wrote: Our system could benefit a lot from being able to compile SWFs on the fly; right now they're all static files loaded dynamically. I could see making them dynamically as needed, while still serving up the static renditions. We do some d

Re: Apache offers to download the perl script rather than execute it!

2007-11-20 Thread Jonathan Vanasco
What does it download? print "Content-type: text/plain\n\n"; print "Mod Perl 2 Rocks\n"; or Mod Perl 2 Rocks ?

Re: Losing Variables under Apache2 Reload

2007-11-19 Thread Jonathan Vanasco
On Nov 18, 2007, at 11:00 PM, Perrin Harkins wrote: Okay, the copy/paste error just confused me. In any case, Apache2::Reload wipes all package variables. It uses ModPerl::Util::unload_package. So, this is the intended behavior. My general advice is to only used Apache2::Reload on a dev serv

Re: Losing Variables under Apache2 Reload

2007-11-18 Thread Jonathan Vanasco
atcher to a factory class On Nov 18, 2007, at 10:37 PM, Perrin Harkins wrote: 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

Losing Variables under Apache2 Reload

2007-11-18 Thread Jonathan Vanasco
I'm losing variables under apache2:: reload below is a summation of my problem. when a2::reload recompiles off of a changed sub, i lose the entire WATCH_ME var. i think this might happen because of the begin blocks. and the way plugins register. i thought it wise to bring this up though,

Re: [Question] mod_perl2 W3C HTML Tidy handler location

2007-11-16 Thread Jonathan Vanasco
u get your HTML data as without mod_tidy. To load the module into Apache, add it to APACHE_MODULES in /etc/sysconfig/apache2 ('a2enmod mod_tidy'). To learn about the configuration, refer to /usr/share/doc/packages/apache2-mod_tidy/README. // Jonathan Vanasco w. http://findmeon.co

error log analyzer/reporter

2007-11-14 Thread Jonathan Swartz
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 order of frequency. This seems like a common task (something I've w

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

2007-11-13 Thread Jonathan Vanasco
On Nov 13, 2007, at 3:04 PM, Dodger wrote: Something doesn't sound right with this assessment. Stealing the digest(password) wouldn't let you in on a different connection because you'd be using a different seed on a different connection... Yes, you're right , as is your example. However, the

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

2007-11-13 Thread Jonathan Vanasco
an unseeded digested password and limit replay attacks. // Jonathan Vanasco w. http://findmeon.com/user/jvanasco e. [EMAIL PROTECTED] | Founder/CEO - FindMeOn, Inc. | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |

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

2007-11-13 Thread Jonathan Vanasco
On Nov 13, 2007, at 11:48 AM, Michael Peters wrote: Why is this considered "ticketless"? Isn't the challenge that you mention below really a ticket? And does the client need to present this ticket on every request? Yes, you're right - the challenge is a ticket -- and must be presented on

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

2007-11-13 Thread Jonathan Vanasco
y The SVN is here: http://dev.2xlp.com/svn/mod_perl/Authen::Ticketless/trunk/ // Jonathan Vanasco w. http://findmeon.com/user/jvanasco e. [EMAIL PROTECTED] | Founder

Re: simple profiling capability

2007-11-12 Thread Jonathan Vanasco
i'm just tossing this idea out... 1) have a profiler package that handles all the logging, etc - and uses a constant package MyApp:::Profiler; use constant DO_PROFILE=> 1; sub profile { my ( $marker )= @_ ; #log; } 1; 2)

Re: Building mod_perl2 on Leopard

2007-11-12 Thread Jonathan Vanasco
On Nov 10, 2007, at 8:00 PM, Hendrik Van Belleghem wrote: To be honest, I haven't been able to get DBD::mysql compiled, nor Apache2::Request (properly - still some strange errors in the apache2 error log when I try to load it). I haven't fully tested the Apache2 (or mod_perl for that matter).

Re: Building mod_perl2 on Leopard

2007-11-10 Thread Jonathan Vanasco
Slightly off-topic: The 10.2 10.3 and maybe 10.4 versions of Apache that came with OS X had library conflicts with mysql/php if you tried to compile modperl 1 or 2 Can I interpret your post to mean that one does not have to rebuild Apache2 now too? On Nov 10, 2007, at 9:56 AM, Hen

Re: caching reverse proxy config+init scripts

2007-11-08 Thread Jonathan Vanasco
On Nov 8, 2007, at 1:40 PM, John ORourke wrote: Pound (http://www.apsis.ch/pound/index_html) is light-weight, easy to I can disagree -- nginx does everything that pound does, plus will handle your vanilla FLAME WAR!!!1!1! well its not meant to flame... your options are this: a)

Re: caching reverse proxy config+init scripts

2007-11-08 Thread Jonathan Vanasco
On Nov 8, 2007, at 5:50 AM, Clinton Gormley wrote: Pound (http://www.apsis.ch/pound/index_html) is light-weight, easy to configure, fast, stable, and makes the whole SSL and load balancing dead easy. I can disagree -- nginx does everything that pound does, plus will handle your vanilla s

Re: mod_perl MVC framework.

2007-10-26 Thread Jonathan Vanasco
On Oct 24, 2007, at 10:37 PM, Foo JH wrote: What is fast to cook, good to eat is HTML::Template. No XML, easy abstraction between your web designer and developer. I GREATLY prefer using TAL ( in perl using Petal ) for the V someone finally made an integration for Petal and Catalyst. unfo

Re: Correct way to upload a file

2007-08-10 Thread Jonathan Vanasco
On Aug 10, 2007, at 10:25 PM, Mag Gam wrote: I have just started learning perl and mod_perl, and I must admit I am enjoying it a lot! I am tying to upload a file, so I can do some calculations to the file, my question is what is the "correct" and most "efficient" way to upload the file, an

Re: [RELEASE CANDIDATE] libapreq2 2.09-RC2

2007-08-07 Thread Jonathan Vanasco
Are we going to have 2.09 release? It's been quite some time since RC2 actually, i'd like to see an RC3-- there was an issue I kept complaining about that Joe was going to solve thanks to some testing by [EMAIL PROTECTED] -- reference the posting on 2007.05.25 Supposedly, this is going

Re: X_FORWARDED_FOR original IP

2007-08-03 Thread Jonathan Vanasco
e the info in $r ; you ESPECIALLY DO NOT want to do that in your case // Jonathan Vanasco Founder/President - FindMeOn Fonder/CEO - RoadSound | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | FindMeOn.com - The cure fo

Re: reverse proxy/logging problem

2007-08-02 Thread Jonathan Vanasco
On Aug 2, 2007, at 11:07 AM, Carl Johnstone wrote: I've got a two-apache reverse proxy setup, split over two hosts. The problem I've got is that I'd like to put the user_id in the access logs so that our log analysis software can make use of it. Setting apache->user correctly logs the user

Re: mod_perl2 and SDBM-tied hashes

2007-07-29 Thread Jonathan Vanasco
On Jul 29, 2007, at 12:15 PM, Brian Reichert wrote: But, that contradicts the behavior I see with my command-line tool demo: distinct processes with distinct tied hashes can sucessfully share data through the sdbm. :/ any reason why you're using sdbm ? you might be better off with bdb,

Re: php/mod_perl + mysql woes

2007-07-20 Thread Jonathan Vanasco
On Jul 20, 2007, at 8:44 AM, Michael Peters wrote: For some reason, some people are hesitant to run multiple versions of apache on the same machine, but there are lots of people who do it all the time and it works out just fine. If you're concerned about running 3 apaches (1 for mod_perl, 1

Re: Confused Apache::DBI (best practice)

2007-07-17 Thread Jonathan Vanasco
connections for 10 children , as any wait time will be offset by db blocking in later request cycles of your app. thats theoretical though, i haven't had the need/time to try that, but i&

Re: auto_index extension to filter on update time

2007-07-16 Thread Jonathan Vanasco
to rewrite mod_autoindex to get your functionality. However, that wouldn't be very hard to do in MP . // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | CEO/Founder Synd

Re: berkeleyDB tie once and forever with mod_perl

2007-07-13 Thread Jonathan Vanasco
On Jul 13, 2007, at 9:48 AM, Perrin Harkins wrote: On 7/13/07, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: I'm thinking of the situation where you have 1 parent, 4 children. all 4 children hit max-requests and exit before the first replacement spawns. without a standing connec

Re: berkeleyDB tie once and forever with mod_perl

2007-07-13 Thread Jonathan Vanasco
First off- thank you perrin , i'm a step closer to fully understanding this. On Jul 12, 2007, at 9:14 PM, Perrin Harkins wrote: No. This is explicit shared memory, not a mysterious copy-on-write thing. You need to initiate access separately from each process so that none of the XS stuff

Re: berkeleyDB tie once and forever with mod_perl

2007-07-12 Thread Jonathan Vanasco
Could you elaborate on this? I'm a bit unclear: are you suggesting a) the tie be global pre-fork b) the tie be post-fork c) there be no tie whatsoever , and somehow a connection is made using the API at the beginning , and everything just uses the library/ api methods ? m

Re: how do I clear stale POST data?

2007-07-11 Thread Jonathan Vanasco
little mistake like that can be fixed by moving a 'my' from a package into a sub. thats a common mistake that could result in that effect. the other answers are much more specific to your

Re: DBI and threaded MPM

2007-07-09 Thread Jonathan Vanasco
gpool. the apache::dbi/dbi cached don't really pool; they just override connects for established connections on their process and reuse them. things like sqlrelay/pgpool will let you use 50 db connections for 150 server processes ( by blo

Re: header issues etc...

2007-07-04 Thread Jonathan Vanasco
variable names can change, and the only way to get/modify vars is through the api methods. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | CEO/Founder SyndiClick Networks

Re: header issues etc...

2007-07-03 Thread Jonathan Vanasco
On Jul 3, 2007, at 5:51 PM, Perrin Harkins wrote: I don't really understand this description. If you're trying to code a singleton pattern, use global variables to hold the object. That makes it clearer what your intent is. Scoping works the same as usual under mod_perl. If you need acces

Re: questions on serving big file & SQL statement parsing

2007-07-03 Thread Jonathan Vanasco
competing for resources with processes that can take several seconds. bad idea. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: Where to store uploads

2007-07-03 Thread Jonathan Vanasco
ou a 2 deep directory \d\d = 64*64 = 4096 files if only base32 were more common thats a good sweet spot. for simplicity, i usually do 3 base16 chars. but 2 base32 might be better for your os. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: apache and php

2007-07-02 Thread Jonathan Vanasco
ou're just going to bloat apache and tie up resources. i run nginx on port80 for static content, push php content to fastcgi and proxy certain urls to mod_perl. my server's efficiency spiked drastically when i moved away from an all-apache setup.

Re: questions on serving big file & SQL statement parsing

2007-07-02 Thread Jonathan Vanasco
ral static file handling, under mp if at all possible. let it handle content generation and authorization as the 'brains' -- thats what it does best. use other apps like perlbal, nginx, whatever to handle your static files and large uploads.

Re: Problems using Apache::Reload

2007-07-01 Thread Jonathan Vanasco
erl servers. all of the db interaction on that stuff is handled by requests to internal perl-servers which return json objects. its really gives us the best of both worlds. On Jul 1, 2007, at 4:47 AM, Tony van der Hoff wrote: On 30 Jun at 16:55 Jonathan Vanasco <[EMAIL PROTECTED]>

  1   2   3   4   5   6   7   8   9   >