Menu

#966 soap_bind() fails when compiled with IPv6 support

v1.0 (example)
closed-fixed
None
3
2015-02-01
2014-04-30
larchunix
No

Platform: GNU/Linux (Fedora 20)

When gSOAP is compiled with --enable-ipv6 flag, soap_bind() fails.

Relevant error message:

Error 28 fault: SOAP-ENV:Server [no subcode]
"Protocol not available"
Detail: setsockopt unset IPV6_V6ONLY failed in soap_bind()

It happens because the function setsockopt(socket, IPPROTO_IPV6, IPV6_V6ONLY, (char*)&unset, sizeof(int))) is called on an AF_INET socket and not on an AF_INET6 socket.

The patch quoted in comments of bug [#959] solves the issue.

I can't explain why on my computer getaddrinfo() returns an AF_INET socket to 0.0.0.0 and not an AF_INET6 socket to :: whereas provided hint.ai_family is AF_UNSPEC

netstat shows that OpenSSH listens on both 0.0.0.0:22 and :::22 so it seems IPv6 is correctly enabled on my machine.

Related

Bugs: #959

Discussion

  • Robert van Engelen

    This problem will be fixed in the upcoming 2.8.18 release available soon.

     
  • Robert van Engelen

    • status: open --> open-fixed
     
  • Robert van Engelen

    • status: open-fixed --> pending-fixed
     
  • Robert van Engelen

    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB