0
當我發出一個NSURLRequest並且收回超時錯誤代碼(NSURLErrorDomain Code = -1001)時,這意味着什麼?這是否意味着:NSURLRequest超時錯誤代碼
A) My request reached my web server, but the server took too long to issue a response?
B) My request did not reach the server in time (implying heavy congestion in network)
C) The server did issue a response, but the response data just did not get back to my client
app in time.
OR....
D) ALL OF THE ABOVE.
我的直覺和常識告訴我答案是D,但我可能是錯的。最後,如果答案是D,是否有區分上述情況?我想採取不同的行動,根據我的迴應是在網絡流量的確切位置...
錯誤的'userInfo'告訴你什麼? –
除了通用的請求超時消息之外,它並沒有告訴我多少。 – AyBayBay
2014-03-27 22:03:53.891 SDKSampleApp [833:60b]錯誤用戶信息:{ErrorsFailingURLKey =「https:// ....」; NSErrorFailingURLStringKey =「https:// ....」; NSLocalizedDescription =「請求超時。」;請求超時。「UserInfo = 0xaf8a0f0 {NSErrorFailingURLKey = https:...,NSErrorFailingURLStringKey = https:...,NSLocalizedDescription =請求超時}」請求超時。 ; } – AyBayBay