Opened 5 years ago
Last modified 5 years ago
#5498 new defect
Fix gloox 1.0.22 --with-getaddrinfo on macOS
Reported by: | historic_bruno | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Backlog |
Component: | Multiplayer lobby | Keywords: | mac ipv6 |
Cc: | Patch: |
Description
When I updated gloox on macOS as part of Phab:D2057, the game failed to connect to the lobby with a server hostname resolution failure. gloox 1.0.22 switched to using getaddrinfo by default, for IPv6 support, which is good. We need to find out why that's not working on macOS, and possibly other platforms, so we can support IPv6.
Note:
See TracTickets
for help on using tickets.
Currently, lobby.wildfiregames.com has no IPv6 address, but getaddrinfo can return multiple addresses from multiple families (AF_UNSPEC hint), which the client (gloox) should enumerate and test connections until one of them works (Apple recommends native APIs to avoid issues, see this post from the Apple dev forum).
Here's example code if anyone wants to test getaddrinfo on macOS or another platform: https://linux.die.net/man/3/getaddrinfo
The example resolves lobby.wildfiregames.com as expected, and the code in gloox is nearly identical.