perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Perrin Harkins <per...@elem.com>
Subject Re: Apache::Session::Lock::File hangs under Windows
Date Mon, 07 Jul 2003 14:18:17 GMT
On Mon, 2003-07-07 at 07:29, Andrew Alakozow wrote:
> Apache::Session::Lock::File hangs under Windows if you try to remove
> session or add data to existing session. This happenes because you cannot
> "flock($self->{fh},
> LOCK_EX)" if you already has "flock($self->{fh}, LOCK_SH)" in Windows.

Under mod_perl 1, there is no need to use locking on Win32 since
mod_perl runs single-threaded there.  This patch might be useful for
mod_perl 2 on Win32, but LOCK_UN is tricky.  Have you seen this?
http://perl.plover.com/yak/flock/samples/slide004.html

- Perrin



Mime
View raw message