문제

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....

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top