http://www.perlmonks.org?node_id=11111479

vshah has asked for the wisdom of the Perl Monks concerning the following question:

Getting error in perl version 5.16.3 wpnInterfaceSoapServer25215:000 catch(): wpnSoapForkingDaemon::clientSoapRequestHandler(): Bad arg length for Socket::sockaddr_family, length is 0, should be at least 2 at /usr/share/perl5/vendor_perl/IO/So cket/IP.pm line 694 Please help
  • Comment on sockaddr_family, length is 0, should be at least 2

Replies are listed 'Best First'.
Re: sockaddr_family, length is 0, should be at least 2
by Corion (Patriarch) on Jan 16, 2020 at 12:19 UTC

    Most likely, the address you are getting in whatever HTTP / SOAP server you are running is invalid.

    Somebody calls sockaddr_family on an address that is likely undef, most likely because some code above it failed to properly allocate a host name.

      Thank you !! When I did nslookup it gave me different hostname, if I did nslookup <ip> then it gave me correct hostname. So might be DNS is not configured correctly.