Skip Menu |

This queue is for tickets about the Apache-Session CPAN distribution.

Report information
The Basics
Id: 1401
Status: resolved
Priority: 0/
Queue: Apache-Session

People
Owner: Nobody in particular
Requestors: aharper [...] foobox.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.54
Fixed in: 1.81



Subject: Apache::Session::Lock::File->clean reversed time comparison
Apache::Session::Lock::File's clean method fails to clean old lock files due to reversed time comparison at line 136. (stat($dir.'/'.$file))[8] - $now >= $time will always be false since last access time - time() is going to be negative. $now - (stat($dir.'/'.$file))[8] should take care of it.
Solved in version earlier than 1.81. -- Alexandr Ciornii, http://chorny.net