Uploading large files on iOS with AFNetworking - error Request Timeout

有些话、适合烂在心里 提交于 2019-12-06 13:47:33

I had similar issue with AFNetworking: NSURLErrorDomain Code=-1001 "The request timed out." When retrieving from an external server and the device is on a subnet to a router connected to the WAN, the request works perfectly (192.168.1.0 subnet-1 -> WAN). However, if connected to a subnet which is connected to the router connected to the WAN, the request fails with the above message (192.168.0.0 subnet-2 -> 192.168.1.0 subnet-1 -> WAN). All browser operations work fine through the subnet-2, AFNetworking appears to connect but receives a time-out. I suspect the problem is with a configuration of the subnet-2 router.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!