perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Schindl <tomAtLi...@gmx.at>
Subject Re: [mp2] strange behavior of script under heavy load
Date Mon, 15 Aug 2005 12:43:01 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[...]
> This was apparently caused by code like this
> 
>   use File::Temp qw();
>   my $fh = File::Temp->new();
>   File::Temp::unlink0($fh, $fh->filename);
>   print "Content-Type:text/plain\n\n";
> 
> On Win32 this would delay unlinking the temp files until File::Temp is
> unloaded. For some reason, File::Temp stops creating new temp files
> after about 180 files. Using it with stand-alone Perl it should allow
> for > 2000 temp files. I'm not sure why File::Temp does not croak here
> then or why this causes the strange behavior, but fixing the incorrect
> code above solves the problem.
> 

If I'm not completly mistaken this thread about win32 and temp-files on
p5p may explain it.

http://www.gossamer-threads.com/lists/perl/porters/195601

[...]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFDAI3VkVPeOFLgZFIRAnw7AKCnCpdJf8uiPEHI0/nYxLDzo1tAZACeMAPj
f8jushxhaY4Z1sGgSnc20D8=
=NhId
-----END PGP SIGNATURE-----

Mime
View raw message