Re: Setting HTTP-STATUS and Filters

2006-03-18 Thread Tom Schindl
Hi, solved it myself $f->r->status() how stupid I haven't seen this before, works like a charme but one more question, what is a filter supposed to return on ERROR why does one have to set the status one self and return Apache2::Const::SERVER_ERROR from the filter handller isn't setting the reques

Semaphores

2006-03-18 Thread Bill Whillers
To avoid use of Reload, I'm using semaphores to ensure all processes are up to date with a single large hash that rarely gets updated. Is this a bad idea? I'd appreciate any constructive criticisms: # each session unless(-e "$semaphore/$$"){ # do the caching routine from

Re: Semaphores

2006-03-18 Thread Jonathan Vanasco
i asked something like that once before (though not in terms of mod_perl) , and was told this: if the disk doesn't have a lot of read/writes already, the the OS should optimize a bunch of the filechecking into memory and won't touch the disk if it does have a lot of use ( uploads/ shred

Re: Semaphores

2006-03-18 Thread Bill Whillers
Thanks - It'd be great to share this memory, but I'm suspecting start/stop could cause other problems -- i.e. dropping current connections. Also, we'd still need to know when to start/stop the given machine's service. As for touching, instead of using the physical disk, we could use an extra c