Skip to content

Commit 456bb43

Browse files
committed
:host<localhost> doesn't work on OS X ?
: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
1 parent ad3ea69 commit 456bb43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

S32-io/socket-accept-and-working-threads.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ start {
2828

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

0 commit comments

Comments
 (0)