Skip Menu |

This queue is for tickets about the IO-Socket-INET6 CPAN distribution.

Report information
The Basics
Id: 51243
Status: resolved
Priority: 0/
Queue: IO-Socket-INET6

People
Owner: Nobody in particular
Requestors: WolfSage [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in:
  • 2.51
  • 2.52
  • 2.53
  • 2.54
  • 2.55
  • 2.56
Fixed in: (no value)



Subject: Non-blocking connect does not work
The use of Blocking => 0 in the IO::Socket::INET6->new() constructor does not behave as expected - the socket still blocks on a connect call. I've attached a script which demonstrates this behavior. I believe this is because $sock->blocking(0) is being called before $sock->socket() is called.
Subject: sock.pl
#!/usr/bin/perl use strict; use warnings; use IO::Socket::INET; use IO::Socket::INET6; my $sock = IO::Socket::INET->new( Proto => 'tcp', PeerAddr => '1.1.1.1', PeerPort => 80, Blocking => 0, ); print "SOCK: $sock\n"; print "Next call will block...\n"; my $sock2 = IO::Socket::INET6->new( Proto => 'tcp', PeerAddr => '1::1', PeerPort => 80, Blocking => 0, ); print "Sock2: $sock2\n";
Fixed in 2.57.