Skip to content

Commit

Permalink
Re-enable broadcast on the server now that clients only run in a dock…
Browse files Browse the repository at this point in the history
…er environment
  • Loading branch information
nigelhorne committed Jul 27, 2020
1 parent e183f0f commit e3a1e00
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions bin/smokerupdate
Expand Up @@ -33,16 +33,15 @@ my $s = IO::Socket::INET->new(PeerPort => $port,
Broadcast => 1)
or die "Can't broadcast to port $port";

# Disabled
# while(my $line = <$pin>) {
# next if($line =~ /\/perl-?[56][\.\/]/i);
# next unless(($line =~ /^authors\/id\/(.+)\.tar\.gz/) || ($line =~ /^authors\/id\.(.+)\.tgz/));
# my $dist = $1;
# $dist .= "\n" if($dist !~ /\n$/);
# $s->send($dist);
# sleep(1); # Give the clients a chance to do something so they don't miss the message
# $count++;
# }
while(my $line = <$pin>) {
next if($line =~ /\/perl-?[56][\.\/]/i);
next unless(($line =~ /^authors\/id\/(.+)\.tar\.gz/) || ($line =~ /^authors\/id\.(.+)\.tgz/));
my $dist = $1;
$dist .= "\n" if($dist !~ /\n$/);
$s->send($dist);
sleep(1); # Give the clients a chance to do something so they don't miss the message
$count++;
}

close $pin;

Expand Down

0 comments on commit e3a1e00

Please sign in to comment.