Who have no friends in the network connection problems encountered are as follows:
NSData * responseData = [NSURLConnection sendSynchronousRequest: request returningResponse: & response error: & error]
if ([error code] == NSURLErrorNetworkConnectionLost)
{
NSLog (@ ">>>>>>>>>>>>>>>>> error:% @", [error description]);
}
console output: error: Error Domain = NSURLErrorDomain Code = -1005 "The network connection was lost."
When we encounter such an error message, check a lot of information, has not been resolved, the main problem is to use a normal http connections do not make such a mistake, if you use ssl will be such a problem, but not a fundamental connection is not on the server but normal connection suddenly cut off for some time, print out the above error message is really quite engaging halo, there is no friend who can give some hints or suggestions, thank you very much!
Reply:
Hello you say what the situation reconnection
No comments:
Post a Comment