Skip Menu |

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

Report information
The Basics
Id: 6800
Status: resolved
Priority: 0/
Queue: Apache-Test

People
Owner: Nobody in particular
Requestors: ajsavige [...] yahoo.com.au
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Thread safety: work around perl sort bug
perl-5.8.4. Apache-Test-1.12. If thread safety is important to this module, suggest in TestServer.pm you change: my $by_port = sub { $vh->{$a}->{port} <=> $vh->{$b}->{port} }; for my $module (sort $by_port keys %$vh) { to, something like: for my $module (sort { $vh->{$a}->{port} <=> $vh->{$b}->{port} } keys %$vh) { i.e. inline the sort sub to work around perl bug #30333 "threads sort crashes with sort subroutine (but not with sort block)". /-\
Date: Wed, 30 Jun 2004 08:27:12 -0700
From: Stas Bekman <stas [...] stason.org>
To: test-dev [...] httpd.apache.org, Andrew Savige <ajsavige [...] yahoo.com.au>, bug-Apache-Test [...] rt.cpan.org
Subject: Re: [cpan #6800] Thread safety: work around perl sort bug
RT-Send-Cc:
Thanks Andrew. But it's not a problem for us, since we don't run Apache-Test under threads. -- Show quoted text
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:stas@stason.org http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com