Skip to content

Commit

Permalink
:host<localhost> doesn't work on OS X ?
Browse files Browse the repository at this point in the history
:host<127.0.0.1> does.  Assuming 127.0.0.1 works everywhere, this
seems like a good fix.  Should this only work this way on OS X,
then we need to make the :host specification conditional on the OS
  • Loading branch information
lizmat committed Sep 7, 2016
1 parent ad3ea69 commit 456bb43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S32-io/socket-accept-and-working-threads.t
Expand Up @@ -28,7 +28,7 @@ start {

await $ready;
for ^5 {
my $conn = IO::Socket::INET.new(:host<localhost>, :port(10333));
my $conn = IO::Socket::INET.new(:host<127.0.0.1>, :port(10333));
$conn.print: "Don't hang up";
is $conn.recv, "Don't hang up", "Server responded ($_)";
$conn.close;
Expand Down

0 comments on commit 456bb43

Please sign in to comment.