{"action":"created","issue":{"url":"https://api.github.com/repos/robbiehanson/XMPPFramework/issues/718","repository_url":"https://api.github.com/repos/robbiehanson/XMPPFramework","labels_url":"https://api.github.com/repos/robbiehanson/XMPPFramework/issues/718/labels{/name}","comments_url":"https://api.github.com/repos/robbiehanson/XMPPFramework/issues/718/comments","events_url":"https://api.github.com/repos/robbiehanson/XMPPFramework/issues/718/events","html_url":"https://github.com/robbiehanson/XMPPFramework/issues/718","id":153472595,"number":718,"title":"XMPP socket fails to connect when connected to a IPv6 only network","user":{"login":"polmum","id":19226232,"avatar_url":"https://avatars.githubusercontent.com/u/19226232?v=3","gravatar_id":"","url":"https://api.github.com/users/polmum","html_url":"https://github.com/polmum","followers_url":"https://api.github.com/users/polmum/followers","following_url":"https://api.github.com/users/polmum/following{/other_user}","gists_url":"https://api.github.com/users/polmum/gists{/gist_id}","starred_url":"https://api.github.com/users/polmum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polmum/subscriptions","organizations_url":"https://api.github.com/users/polmum/orgs","repos_url":"https://api.github.com/users/polmum/repos","events_url":"https://api.github.com/users/polmum/events{/privacy}","received_events_url":"https://api.github.com/users/polmum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-05-06T15:09:49Z","updated_at":"2016-06-10T07:14:16Z","closed_at":null,"body":"Apple recently announced that Starting June 1, 2016 all apps submitted to the App Store must support IPv6-only networking.\r\nI set up a network following Apple's documentation instructions in [https://developer.apple.com/library/mac/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/UnderstandingandPreparingfortheIPv6Transition/UnderstandingandPreparingfortheIPv6Transition.html#//apple_ref/doc/uid/TP40010220-CH213-SW16], and when trying to use the library the GCDAsyncSocket socket fails to connect.\r\nAfter investigating a bit the issue seems to be that the XMPP server is returning both IPv4 and IPv6 addresses, but the socket is only trying to connect with the preferred one, which is IPv4. When it fails to connect, it does not retry with the IPv6 address.\r\n\r\nI'm not really sure if this is an issue that should be fixed in the GCDAsyncSocket library or here in the XMPP one.\r\nA possible solution would be to set IPv6 as the preferred address, but right now that is not possible as the XMPPStream class is not exposing the socket as a property, nor does it provide a method to set this configuration.\r\n\r\nAny help and guidance is really appreciated"},"comment":{"url":"https://api.github.com/repos/robbiehanson/XMPPFramework/issues/comments/225110128","html_url":"https://github.com/robbiehanson/XMPPFramework/issues/718#issuecomment-225110128","issue_url":"https://api.github.com/repos/robbiehanson/XMPPFramework/issues/718","id":225110128,"user":{"login":"soulfly","id":373137,"avatar_url":"https://avatars.githubusercontent.com/u/373137?v=3","gravatar_id":"","url":"https://api.github.com/users/soulfly","html_url":"https://github.com/soulfly","followers_url":"https://api.github.com/users/soulfly/followers","following_url":"https://api.github.com/users/soulfly/following{/other_user}","gists_url":"https://api.github.com/users/soulfly/gists{/gist_id}","starred_url":"https://api.github.com/users/soulfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soulfly/subscriptions","organizations_url":"https://api.github.com/users/soulfly/orgs","repos_url":"https://api.github.com/users/soulfly/repos","events_url":"https://api.github.com/users/soulfly/events{/privacy}","received_events_url":"https://api.github.com/users/soulfly/received_events","type":"User","site_admin":false},"created_at":"2016-06-10T07:14:16Z","updated_at":"2016-06-10T07:14:16Z","body":"Anyway you can test it on your end before submission\r\n\r\nPlease follow this guide\r\nhttps://developer.apple.com/library/mac/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/UnderstandingandPreparingfortheIPv6Transition/UnderstandingandPreparingfortheIPv6Transition.html#//apple_ref/doc/uid/TP40010220-CH213-SW16\r\n\r\njust setup IPv6 WiFi network on your MacMini and connect with your iPhone.\r\nIf it works well then you can submit your app. "}}
{"actor":{"display_login":"soulfly"}}