Re: Secure web

2010-10-05 Thread William T
This is very big question. You should research perl best practices for development. You should also research secure programming techniques. On Sun, Oct 3, 2010 at 4:36 PM, wrote: > Hai, > I am new to mod_perl. > I want to build secure web based applications (not https), I mean secure > agains

Re: huge apache+mod_perl processes

2010-10-05 Thread William T
If you don't have an unbounded growth issue it is likely do to some library pulling in alot of dependencies or the creation/caching in memory of some large data structure. You can preload all the offending libraries and see if that causes a jump in the initial memory allocation for you apache proc

Re: mod_perl memory

2010-03-16 Thread William T
On Mon, Mar 15, 2010 at 11:26 PM, Pavel Georgiev wrote: > I have a perl script running in mod_perl that needs to write a large amount > of data to the client, possibly over a long period. The behavior that I > observe is that once I print and flush something, the buffer memory is not > reclaime

Fwd: Killing oversized Perl processes

2010-03-12 Thread William T
On Thu, Mar 11, 2010 at 1:41 PM, ARTHUR GOLDBERG wrote: > > OK, that kills big processes. What happens next is that Perl runs out of > memory (outputs "Out of Memory!") and calls the __DIE__ signal handler. So, > my plan is to catch the signal, redirect the browser to an error page, and > finally

Re: output filter

2010-01-29 Thread William T
On Thu, Jan 28, 2010 at 11:46 PM, wrote: > BTW, though we are still using modperl for developing some applications. > But it seems other instead technologies are becoming more and more > popular, like PHP,Django,Rails etc. > Is modperl  outdated in today? I don't know that PHP is becoming more p

Re: 302 Redirect not working as expected with PerlCleanupHandler and Firefox under ModPerl::Registry

2010-01-26 Thread William T
Caveat Lector: Long Cleanups done inline on the Apache children can cause problems. If you get a situation where the CleanUp takes to long OR you get enough traffic to the page(s) which engage the CleanUp then you will encounter a tipping point, and soon after your website will be almost complete

Re: Apache Blank Pages

2010-01-12 Thread William T
It seems pretty clear the blank pages are from the apache children dieing badly (hence the errors). I would make an educated guess based on the malloc error that your ram is bad. Try running your app on a different box and see if you get the same errors. On Jan 12, 2010 7:19 AM, "cfaust-dougot"

Re: avoiding child death by size limit

2009-12-11 Thread William T
On Thu, Dec 10, 2009 at 11:28 AM, E R wrote: > Hi, > > I have a problem where a mod_perl handler will allocate a lot of > memory when processing a request, and this causes Apache to kill the > child due to exceeding the configure child size limit. > > Are there any special techniques people use to

Re: print throwing intermittent Segfaults

2009-11-21 Thread William T
This is the list of stuff I usually start with when I get a problem that doesn't seem to be tied to a particular code path. * code path - perhaps a particular code path is only being exercised rarely, and it has a bug * forking - when child dies, all open descriptors in it's name space also ge

Re: A better way to handle multiple client authentication?

2009-11-21 Thread William T
The documentation alludes to the variable 'pwd_whereclause'. If this variable is set it will be used in the passwd query. I would try and set it per client so that the query gets an additional where clause: SELECT pwd_field FROM pwd_table WHERE uid_field = user AND client = clientA

Re: Why people not using mod_perl

2009-10-24 Thread William T
On Fri, Oct 23, 2009 at 4:06 PM, Ihnen, David wrote: > > But I'm very interested to know at what point (if any) a site/app grows too > large or too complex for mod_perl and what defines that turning point. > Could Amazon run on mod_perl for example? To me mod_perl is just a platform like most oth

Re: DBI Connectons accumulate under Mod_perl

2009-10-23 Thread William T
On Tue, Oct 20, 2009 at 9:59 AM, Artem Kuchin wrote: > > however, whe i do in mysql > > show processlist; > > I see many connection hanging in sleep state and they grow and grow slowly! > Any idea why this happens? Could be many things. Maybe multiple hits to different Apache children are openin

Re: Configuring virtual hosts on the fly

2009-10-13 Thread William T
On Tue, Oct 13, 2009 at 8:08 AM, Scott Gifford wrote: >> Sounds like you might be pushing the envelope on what Apache can >> actually do.  If you cannot solve the problem in Apache you could >> consider relying on Apache default vhost as a way to funnel all >> requests into a Perl "dynamic vhost"

Re: Configuring virtual hosts on the fly

2009-10-13 Thread William T
On Sun, Oct 11, 2009 at 11:54 AM, Scott Gifford wrote: > Hello, > > I'm working on an Apache configuration for a cluster of machines > serving a variety of virtual hosts. I would not try to unify disparate configs into one unless each server is actually going to service all the virtual hosts your

Re: distributing software built on mod_perl

2009-09-26 Thread William T
On Fri, Sep 25, 2009 at 7:32 AM, Mike Barborak wrote: > I think I see what you're saying. It seems like a very expensive > problem to solve. It must be a barrier to people choosing mod_perl to > develop their apps because it might be the case that their > distribution and installation process is m

Re: Why people not using mod_perl

2009-09-18 Thread William T
On Fri, Sep 18, 2009 at 1:34 AM, Clinton Gormley wrote: > I'm surprised that nobody has mentioned EPIC, the Perl plugin for > Eclipse.  It works really really well, at least as well as the Java > version (although it can't do as much prediction as Java can because of > the nature of static vs dyna

Re: distributing software built on mod_perl

2009-09-11 Thread William T
Whenever I creating shrink-wrapped software I always make packaging and distribution part of the development, qa and testing process. All packages for the platforms that we will be supporting. The reason I do this is to cut down on the customer support overhead. I've found you get less calls and

Re: Help -- how to fork an Apache process in mod_perl safely? Not Apache2:Subprocess...

2009-08-25 Thread William T
There are all kinds of problems that you'll encounter and have to solve if you fork. I found it's better to call at(1) to start another seperate process immediatly. If you need to pass data JSON worked really well for me. -wjt On Aug 25, 2009 5:12 AM, "Victor Danilchenko" wrote: Hi all

Re: Can a PerlAuthzHandler access ENV variables set by mod_auth_kerb?

2009-07-07 Thread William T
On Mon, Jul 6, 2009 at 10:14 AM, Mike Diehn wrote: > > > Hello, all. > > I'm authenticating users with mod_auth_krb and setting KrbSaveCredentials > to on.  I've found that the credentials are stored in a file in /tmp.  The > name of the file is passed to CGI programs as the contents of an ENV var

Re: trying to add header field using PerlInputFilterHandler to proxy packets

2009-06-30 Thread William T
On Mon, Jun 29, 2009 at 8:07 PM, Brandon Allgood wrote: > I am running an apache server 2.2.3 on CentOS 5.2. I have turned on the > proxy with the following lines from my apache.conf: > > > ProxyRequests On > > Order deny,allow > Deny from all > Allow from all > > > > I would like

Re: Pass value from filter to anothe filter

2009-05-13 Thread William T
On Wed, May 13, 2009 at 3:09 AM, Idel Fuschini wrote: > PerlModule :: > PerlTransHandler +::module1 > >     SetHandler modperl >     PerlInputFilterHandler ::module2 > > > and I want to pass variable from module1 to module2 is it possible ? You can you use either pnotes or subpr

executing PerlHandler after default_handler?

2009-05-12 Thread William T
Does anyone if it's possible to fall through the default_handler (decline?) to a PerlHandler? What I want to do is issue a redirect if the file that was requested is not on disk, and I don't want the extra stat due to an NFS mount. Of course I can serve up the file myself, but it seems as though