Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: IPV6 Errors with IO::Socket

by Phenomanan (Monk)
on Feb 02, 2017 at 17:00 UTC ( #1180861=note: print w/replies, xml ) Need Help??


in reply to IPV6 Errors with IO::Socket

Try to run:

 perl -mIO::Socket::INET6 -e ''

If the output is: "Can't locate IO/Socket/INET6.pm in @INC ", then you are missing a module for INET6.

You will have to run this from the CPAN shell: cpan> install IO::Socket::INET6

This should fix the issue.

Replies are listed 'Best First'.
Re^2: IPV6 Errors with IO::Socket
by jZed (Prior) on Feb 02, 2017 at 17:10 UTC
    Thanks, my problem is that I DO have INET6 and it is misbehaving. I need to either find out how to fix it or disable use of IO::Socket::INET6 so that IO::Socket always uses IPV4.

      Grepping both IO::Socket 1.31 and IO::Socket 1.36 for "INET6" yields no results for me.

      Can you show us a short program that reproduces your problem and shows that IO::Socket loads IO:;:Socket::INET6?

      #!perl -w use strict; use Data::Dumper; use IO::Socket; # whatever you need to do to make the error message/warning show up in + INET6.pm print Dumper \%INC;

      Of course, you can always try to rename IO/Socket/INET6.pm ;)

        OK, thanks old friend, your question prompted me to look at what calls what and here's the deal: XML::Feed calls LWP::UserAgent which, in the case of https searches, calls IO::Socket::SSL which calls IO::Socket::INET6 unless it's told not to or it can't find IO::Socket::INET6 in which case it uses IO::Socket:INET which is what I apparently want. So I need to figure out how I can tell it that from up before I call XML::Feed. So I tried removing IO::Socket::INET6 from @INC in a BEGIN block, but I still get the errors ... will report back as I find out more.

      Just based on some research, I think you might be able to get around this issue by using "IO::Socket::INET" instead of "IO::Socket::INET6". Haven't tested this though, but might be worth a try.

      SOURCE

        Yes, right, I need to force use of IO::Socket::INET. But I need to do that many levels above that software if I don't want to muck with other people's modules or other peoples' @INC. See my response to Corion above.

      Welcome back, Jeff!


      *My* tenacity goes to eleven...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1180861]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2023-02-03 13:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (26 votes). Check out past polls.

    Notices?