Skip Menu |
 

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

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

People
Owner: CHORNY [...] cpan.org
Requestors: ANDK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.84
Fixed in: 1.85



Subject: Cleaning up /tmp directory
Download (untitled) / with headers
text/plain 493b
While running make test the following files were dropped into /tmp. Could they be cleaned up, please? -rw-rw-r-- 1 sand sand 0 2007-10-23 03:50:01 Apache-Session-6319306fc6eca1 6a80bd22cc57c05282.lock -rw-rw-r-- 1 sand sand 0 2007-10-23 03:50:01 Apache-Session-249edf102f947d f1b8f286c795693978.lock -rw-rw-r-- 1 sand sand 56 2007-10-23 03:50:01 6319306fc6eca16a80bd22cc57c05 282 -rw-rw-r-- 1 sand sand 56 2007-10-23 03:50:01 249edf102f947df1b8f286c795693 978 Thanks!
Download (untitled) / with headers
text/plain 1.3k
On Mon Oct 22 21:57:15 2007, ANDK wrote: Show quoted text
> While running make test the following files were dropped into /tmp. > Could they be cleaned up, please? > > -rw-rw-r-- 1 sand sand 0 2007-10-23 03:50:01 > Apache-Session-6319306fc6eca1 > 6a80bd22cc57c05282.lock > -rw-rw-r-- 1 sand sand 0 2007-10-23 03:50:01 > Apache-Session-249edf102f947d > f1b8f286c795693978.lock > -rw-rw-r-- 1 sand sand 56 2007-10-23 03:50:01 > 6319306fc6eca16a80bd22cc57c05 > 282 > -rw-rw-r-- 1 sand sand 56 2007-10-23 03:50:01 > 249edf102f947df1b8f286c795693 > 978 > > > Thanks!
I ran into the same 2 lock files being created in /tmp and not cleaned up using version 1.81, I worked around the problem by switching the Lock type to "Null" in 99flex.t << Lock => 'File', Show quoted text
>> Lock => 'Null',
<< isa_ok $session->{lock_manager}, 'Apache::Session::Lock::File'; Show quoted text
>> isa_ok $session->{lock_manager}, 'Apache::Session::Lock::Null';
<< Lock => 'File', Show quoted text
>> Lock => 'Null',
The docs do talk about this behaviour: http://search.cpan.org/dist/Apache-Session/Session/Lock/File.pm#NOTES Probably a better cleanup for the test would be to use the code provided in the docs: my $l = new Apache::Session::Lock::File; $l->clean('/var/lock/sessions', 3600) #remove files older than 1 hour Peter (Stig) Edwards
Fixed in 1.85. -- Alexandr Ciornii, http://chorny.net


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.