大家讲道理2017-04-17 16:09:12
Is the server or network unstable? You can try browsing the server interface directly with a browser to see if there are any corresponding problems. It shouldn’t be a problem with AFNetworking
伊谢尔伦2017-04-17 16:09:12
@hudi, are you sure you are not on Xcode 7 or iOS 9? If yes, it will be easier to handle. Waiting for your reply, I will give you a plan:)
怪我咯2017-04-17 16:09:12
I upgraded to iOS9 and Xcode7 today. I also added those few sentences and still sometimes it will report iOS Domain=NSURLErrorDomain Code=-1005 "The network connection has been interrupted." error
The frequency is not high, but there will still be an explanation that it is unstable. I plan not to use afnetworking. I have to find the framework again and upgraded today. I have the same problem
PHP中文网2017-04-17 16:09:12
I also encountered this problem. I tried many methods but couldn't solve it. I can partially solve it by judging whether the error code is equal to -1005 and reconnecting, but this method is not good. This error will not occur if you use afnetworking 3.0, but Qiniu does not support afnetworking3.0. So I have been waiting for Qiniu to update, otherwise I would not know how to solve this problem in my project.