当我发出NSURLRequest并且我收到超时错误代码(NSURLErrorDomain Code = -1001)时,这究竟是什么意思? 这是否意味着:
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,那么无论如何要区分上述情况吗? 我想根据我的响应在网络流程中的确切位置采取不同的行动....
When I issue an NSURLRequest and I get back a timeout error code (NSURLErrorDomain Code=-1001) what exactly does this mean? Does this mean that:
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.My intuition and common sense tells me the answer is D, but I could be wrong. Finally, if the answer is D, is there anyway to differentiate between the above scenarios? I would like to take different actions based on where exactly in the network flow my response is....
最满意答案
请求超时 - 这意味着简单。 我们向服务器发送了请求,但没有收到任何回复。
所以可以是A,B或C中的任何一个。
The request timed out - it means simply that. We sent a request off to the server and never got any reply.
So could be any one of A, B or C.
更多推荐
发布评论