Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top