Re: Sharing read/WRITE data between threads?

2021-08-25 Thread Brad Van Sickle
I've shared read-only data across threads many times a cheap and easy caching mechanims, but as I'm sure you've found in your research, the "copy-on-write" methodology employed by mod_perl prevents you from doing that for mutable data and I'm not aware of a way around that without fundamental

Re: Trouble with script execution

2014-05-18 Thread Brad Van Sickle
Yep you need to restart to see your changes. Believe it or not, that's one of the *nice* things about mod_perl. Instead of compiling the code during each execution as PERL does when executed as a purely interpreted language , mod_perl causes each Apache child process to compile the code

Re: Changing browser URL based on condition

2011-07-11 Thread Brad Van Sickle
Agree with the consensus. The URI should be descriptive of the function, so any requests to /login should be from users who are attempting to... login. The home page should be housed under a separate URL (/home for example) After the user has authenticated, the login module should

Re: mod_perl in larger scale environments

2010-04-15 Thread Brad Van Sickle
15 aprile 2010 alle ore 05:11:15, Brad Van Sickle bvs7...@gmail.com ha scritto: LVS does sound interesting but in your infrastructure layout aren't your single LVS load balancers single points of failure? I simplified a bit too much :) Every LVS machine has a hot-spare, and you

mod_perl in larger scale environments

2010-04-14 Thread Brad Van Sickle
Hello I have a lot of experience in large scale web applications using Java and Websphere, but I now find myself needing to scale a web application built on mod_perl, and I have some questions about best practices for doing that since I don't have any sort of deployment manager or an

Re: mod_perl in larger scale environments

2010-04-14 Thread Brad Van Sickle
So it sounds like Apache is simply not going to meet my needs. In the event that I do need to replace Apache, hopefully you can save me some research time and recommend me one of the listed options that fulfills my needs (or confirm that perlbal does) I need the following features: 1)

Re: mod_perl in larger scale environments

2010-04-14 Thread Brad Van Sickle
... many of these can be simulated in mod_perl. (Apache::DBI, etc...) On 4/14/2010 6:27 PM, Cosimo Streppone wrote: In data 14 aprile 2010 alle ore 22:57:06, Brad Van Sickle bvs7...@gmail.com ha scritto: My first question relates to quality of service and load balancing: Hi Brad, we're

Re: How to get a file listing

2010-02-20 Thread Brad Van Sickle
Apache knows the context, PERL does not. Fully qualify that directory name and it should work. On 2/20/2010 1:01 PM, ceauke wrote: Hi there Here is my code. I get the IMG displayed but also the perl error: No such file or directory.

Re: Custom INC per-directory

2009-10-20 Thread Brad Van Sickle
I don't know the specifics of your project so it's quite possible that I'm missing something, but this all seems like an incredibly bad idea. Sure you can knock some cringe inducing code together and get it to technically work, but the very fact that you need to resort to these sort of

Re: Ways to scale a mod_perl site

2009-09-18 Thread Brad Van Sickle
3) Being enabled by item 2, add more webservers and balancers 4) Create a separate database for cookie data (Apache::Session objects) ??? -- not sure if good idea -- I've never seen the need to do that. In fact, I would suggest you drop sessions altogether if you can. If you need any

Re: Updating cookies in header during request processing

2009-09-18 Thread Brad Van Sickle
All due respect, but hat's a little condescending... I generally cringe when I hear anyone advocating that there is one right way to do things that should be used in every instance In addition to Michael's points (which are totally valid) I would add that your solution is great for

Re: Why people not using mod_perl

2009-09-16 Thread Brad Van Sickle
This is a mod_perl list, so I would expect to see Perl championed pretty heavily, but Java, .net and there ilk are undoubtedly *the* choice for large web applications. I'd like to get into some discussion as to why almost all *large* sites choose these languages. I don't have any

Re: FW: Apache::DBI Failed due to +GlobalRequest

2009-09-12 Thread Brad Van Sickle
I've run into this before. It's a bug in v1.07 of Apache::DBI Open up the Apache/DBI.pm source file (on one of my test systems it's installed in /usr/lib/perl5/site_perl/5.8.8/Apache/DBI.pm) aind the following block of code: / if (!$Rollback{$Idx}) { my $r; if (MP2) {