Thanks for responding so quickly.

flock does work under Windows 2000 and above.

The load tester that I'm using works fine with my script outside of
mod_perl.  My script works inside of mod_perl with only one concurrent user.
When multiple concurrent users began hitting the script under mod_perl,
using Apache::Registry or Apache::RunPerl all heck breaks loose.  It seems
that the file locking breaks down.  Another thing that is totally bizarre is
that stuff is being written to all kinds of files that I'm not writing to.
Even my scripts themselves will sometimes have text appended to the end of
them.  Another problem is that Apache will give me an error message saying
that it is trying to write to memory that is locked.

Do you have any idea where I can go from here?

What it the address of the Win32 mod_perl mailing list?

Thanks.

----- Original Message -----
From: "Perrin Harkins" <[EMAIL PROTECTED]>
To: "Justin Luster" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, August 29, 2002 12:11 PM
Subject: Re: Filehandles


> Justin Luster wrote:
> > Does anyone know anything about flock and mod_perl?
>
> Yes.  There is no problem with flock and mod_perl.  However, if you were
> to open a filehandle in startup.pl and then use that same filehandle
> after forking, that could be a problem.
>
> Personally I would suspect Windows in this case.  I don't know about XP,
> but Windows 95/98/ME did not have a working flock.  If XP is based on
> the NT code, it may not have that problem.  Even so, I would try testing
> that first, or maybe asking about it on Win32 perl mailing list.
>
> - Perrin
>
>
>
>

Reply via email to