Skip Menu |
Report information
Id: 131778
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: mlowe31415 [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



To: rakudobug [...] perl.org
Subject: BUG: IO::Socket::INET
Date: Sat, 22 Jul 2017 00:05:44 -0400
From: Michael Lowe <mlowe31415 [...] gmail.com>
Download (untitled) / with headers
text/plain 1.7k
Hello,

I've run into a bug in IO::Socket::INET.

Windows 10
perl6 -v
This is Rakudo version 2017.04.3 built on MoarVM version 2017.04-53-g66c6dda implementing Perl 6.c.

When creating a new IO::Socket::INET it works to some sites but fails to others. To illustrate the bug, from the REPL:

> IO::Socket::INET.new(host => 'www.google.com', port => 443)
Failed to connect: connection timed out
  in block <unit> at <unknown file> line 1

> IO::Socket::INET.new(host => 'www.google.com', port => 80)
Failed to connect: connection timed out
  in block <unit> at <unknown file> line 1

> IO::Socket::INET.new(host => 'gtk-dlls.p6c.org', port => 443)
Failed to connect: connection timed out
  in block <unit> at <unknown file> line 1

> IO::Socket::INET.new(host => 'stackoverflow.com', port => 443)
IO::Socket::INET.new(encoding => "utf8", host => "stackoverflow.com", port => 443, localhost => Str, localport => Int, backlog => Int, listening => Bool, family => 2, proto => 6, type => 1, nl-in => $["\n", "\r\n"], ins => 0)

I've tried a variety of https sites and it is very hit or miss as to which ones work and which ones do not.

This problem initially showed up because the OpenSSL tests use a connection to google.com. And that test failed:

===> Testing: OpenSSL:ver('0.1.14'):auth('github:sergot')
Testing with plugin: Zef::Service::TAP+{<anon|129467376>}
t\01-basic.t ........... ok
Failed to connect: connection timed out
  in sub fetch at t\02-socket.t line 25
  in block <unit> at t\02-socket.t line 6

Line 25 in 02-socket.t is

my $s = IO::Socket::INET.new(:$host, :port(443));

where host is google.com.

A similar failure happens in the GTK::Simple build process. It tries to download some files and the IO::Socket::INET.new(...) call fails.

Thank you.
Mike
Subject: [perl #131778] BUG: IO::Socket::INET
To: rakudobug [...] perl.org
From: Michael Lowe <mlowe31415 [...] gmail.com>
Date: Sat, 22 Jul 2017 00:30:39 -0400
Download (untitled) / with headers
text/plain 238b
Some additional testing. If I disable IPv6 on my ethernet adapter, everything works. If I re-enable IPv6, it no longer works. Possibly something on my end? but all other software and dev environments work normally without disabling IPv6.
From: Michael Lowe <mlowe31415 [...] gmail.com>
Date: Sat, 22 Jul 2017 00:16:10 -0400
To: perl6-bugs-followup [...] perl.org
Subject: Re: [perl #131778] AutoReply: BUG: IO::Socket::INET
Download (untitled) / with headers
text/plain 2.8k
Some additional testing. If I disable IPv6 on my ethernet adapter, everything works. If I re-enable IPv6, it no longer works. Possibly something on my end? but all other software and dev environments work normally without disabling IPv6.

Mike Lowe
(513) 417-0570
mlowe31415@gmail.com

On Sat, Jul 22, 2017 at 12:05 AM, perl6 via RT <perl6-bugs-followup@perl.org> wrote:
Show quoted text
Greetings,

This message has been automatically generated in response to the
creation of a trouble ticket regarding:
        "BUG: IO::Socket::INET",
a summary of which appears below.

There is no need to reply to this message right now.  Your ticket has been
assigned an ID of [perl #131778].

Please include the string:

         [perl #131778]

in the subject line of all future correspondence about this issue. To do so,
you may reply to this message.

                        Thank you,
                        perl6-bugs-followup@perl.org

-------------------------------------------------------------------------
Hello,

I've run into a bug in IO::Socket::INET.

Windows 10
perl6 -v
This is Rakudo version 2017.04.3 built on MoarVM version
2017.04-53-g66c6dda implementing Perl 6.c.

When creating a new IO::Socket::INET it works to some sites but fails to
others. To illustrate the bug, from the REPL:

> IO::Socket::INET.new(host => 'www.google.com', port => 443)
Failed to connect: connection timed out
  in block <unit> at <unknown file> line 1

> IO::Socket::INET.new(host => 'www.google.com', port => 80)
Failed to connect: connection timed out
  in block <unit> at <unknown file> line 1

> IO::Socket::INET.new(host => 'gtk-dlls.p6c.org', port => 443)
Failed to connect: connection timed out
  in block <unit> at <unknown file> line 1

> IO::Socket::INET.new(host => 'stackoverflow.com', port => 443)
IO::Socket::INET.new(encoding => "utf8", host => "stackoverflow.com", port
=> 443, localhost => Str, localport => Int, backlog => Int, listening =>
Bool, family => 2, proto => 6, type => 1, nl-in => $["\n", "\r\n"], ins =>
0)

I've tried a variety of https sites and it is very hit or miss as to which
ones work and which ones do not.

This problem initially showed up because the OpenSSL tests use a connection
to google.com. And that test failed:

===> Testing: OpenSSL:ver('0.1.14'):auth('github:sergot')
Testing with plugin: Zef::Service::TAP+{<anon|129467376>}
t\01-basic.t ........... ok
Failed to connect: connection timed out
  in sub fetch at t\02-socket.t line 25
  in block <unit> at t\02-socket.t line 6

Line 25 in 02-socket.t is

my $s = IO::Socket::INET.new(:$host, :port(443));

where host is google.com.

A similar failure happens in the GTK::Simple build process. It tries to
download some files and the IO::Socket::INET.new(...) call fails.

Thank you.
Mike




This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org