Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: IO::Socket::INET #6403

Open
p6rt opened this issue Jul 22, 2017 · 3 comments
Open

BUG: IO::Socket::INET #6403

p6rt opened this issue Jul 22, 2017 · 3 comments

Comments

@p6rt
Copy link

p6rt commented Jul 22, 2017

Migrated from rt.perl.org#131778 (status was 'new')

Searchable as RT131778$

@p6rt
Copy link
Author

p6rt commented Jul 22, 2017

From mlowe31415@gmail.com

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

@p6rt
Copy link
Author

p6rt commented Jul 22, 2017

From mlowe31415@gmail.com

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.

@p6rt
Copy link
Author

p6rt commented Jul 24, 2017

From mlowe31415@gmail.com

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​:

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 #&#8203;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@&#8203;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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant