NSURLRequest超时错误代码(NSURLRequest timeout error code)

编程入门 行业动态 更新时间:2024-10-11 11:14:05
NSURLRequest超时错误代码(NSURLRequest timeout error code)

当我发出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.

更多推荐

本文发布于:2023-08-08 00:58:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1466656.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误代码   NSURLRequest   timeout   code   error

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!