Request which is used NSURLConnection to send http is failed over IPv6, but https requrest is success;
error is timeout.
My iphone system is iOS 9.2.1
I found safair had same question.
Request which is used NSURLConnection to send http is failed over IPv6, but https requrest is success;
error is timeout.
My iphone system is iOS 9.2.1
I found safair had same question.
An HTTP timeout is an odd result here. When you use a connect-by-name API, as NSURLConnection does, the system resolves the DNS name and simultaneously tries to connect to all returned addresses, dealing with any combination of IPv4 and IPv6. Clearly one of those connections is working because you didn’t get a ‘connection failed’ error, you got a timeout error. The timeout error indicates that the connection was successfully but traffic isn’t flowing over it. Which is a bit odd.
My guess is that this is a server-side problem but the only way to know for sure is to look at a packet trace. QA1176 Getting a Packet Trace references a bunch of tools for doing that.
Is this failure happening on a IPv4/IPv6 network? Or on an Internet Sharing-based DNS64/NAT64 test network?
I found safair had same question.
In general? Or just to this specific server?
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"WWDC runs Mon, 13 Jun through to Fri, 17 Jun. During that time all of DTS will be at the conference, helping folks out face-to-face. http://developer.apple.com/wwdc/