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)".
/-\