RE: [ILUG] [OT] Perl/webserver problems

From: Kathryn Cassidy (hellbunnie at domain irelands-web.ie)
Date: Wed 23 Feb 2000 - 17:23:26 GMT


Um, actually, I'm not file locking all the time. I didn't think I'd need
to as each user has their own file, therefore there should be only one
process accessing the file at a time. Also, the toolbars are all hidden in
the browser window this thing opens in to discourage people from hitting
refresh or going back and forward.

That doesn't necessarily stop them from refreshing though, or something
else weird could be happening. Doh! Ok, I'll flock everything and see if
that helps.

Does flock work ok on windows as well as unix as the script has to run on
both? I've heared rumours that it's a bit flaky on some systems.

Kathryn.

At 03:21 PM 2/23/00 -0000, you wrote:
>Hmm 2 processes having contention for the file?
>Make sure you're using file locking.
>This probably is the cause since you said it
>happens for some users. They might be the impatient
>type and hit refresh or something causing another
>CGI instance to be started with contention for
>the same file?
>



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:05:29 GMT