(Summary of original experience)
1. The assertion of AF timeout
The system default timeinterval is 60s ASI default is 10s
But there's a saying that AF "AFN can work with nsurlrequest set under get conditions, but not enabled under post conditions (due to Apple internal mechanism, fixed to 240s)"
This is old, and the latest is nothing to correct the story.
After testing the IOS5 is 240s saying that IOS8 is not entirely custom based on the meaning of stack flow that the dividing line is in IOS6
Conclusion: ios>=ios6.0? Custom: 240s
2. Here are two ways to set the time
nsurlrequest*request =[nsurlrequest requestwithurl: [Nsurl urlwithstring:[baseurl Stringbyaddingpercentescap Esusingencoding:nsutf8stringencoding]] Cachepolicy:nsurlrequestuseprotocolcachepo Licy timeoutinterval:Ten]; Nsmutableurlrequest*request = [Client Requestwithmethod:@"POST"Path:@"App_login.do?app=0&action=login"Parameters:params]; Request.timeoutinterval = -;
IOS afnetworking setting Time-out