in reply to IPV6 Errors with IO::Socket

Is that line number around here in IO::Socket::INET6 - what version do you have ? 2.72 ?

for( my $r=0;$r<@rres;$r+=5 ) { for( my $l=0;$l<@lres;$l+=5) { my $fam_listen = $lres[$l]; next if $rres[$r] != $fam_listen; # must be same famil +y push @flr,[ $fam_listen,$lres[$l+3],$rres[$r+3] ]; } }

poj

Replies are listed 'Best First'.
Re^2: IPV6 Errors with IO::Socket
by jZed (Prior) on Feb 02, 2017 at 23:28 UTC
    I have version 1.31. Line 226 is :
    if ( $fam_listen != $family ) { next LOOP_LRES; }
    $fam_listen is set from the original call for a socket but is apparently sporadically missing on my OS. I can shut up the errors if I add an if($fam_listen) ... but tht would be wrong.
      If you really have version 1.31 then you are running a 15 year old version. In this case you should no longer wonder about problems but upgrade your system. But, a version of 1.31 never occurs in the ChangeLog of IO::Socket::INET6, i.e. it goes straight from 1.28 to 2.00. How did you determine the version of IO::Socket::INET6 (which is not the same as IO::Socket!)?
        Yeah my bad. 1.31 was my IO::Scocket::INET version. My IO::Socket::INET6 is at 2.56. Which apparently isn't the latest. I'll install 2.72 and see if that works better. Although Corion seems to have solved my issue with your advice by telling me how to force INET rather than INET6.