Hello,

This may be OT, but may be not though Apache::Session is widely used under
mod_perl.

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.

I wrote to Jeffrey Baker a while ago but has no answer.

Possible patch is:

*** File.old Fri Sep 01 21:21:18 2000
--- File.pm Tue Apr 01 16:40:52 2003
***************
*** 65,70 ****
--- 65,72 ----
          $self->{opened} = 1;
      }

+     if ($^O eq 'MSWin32' && $self->{read}){flock($self->{fh}, LOCK_UN)}
+
      flock($self->{fh}, LOCK_EX);
      $self->{write} = 1;
  }

aa29

Reply via email to