title: iOS - Increase timeout for AFHTTPRequestOperationManager
body: <p>I'm downloading JSON data from a very slow server. It takes about a minute to get a resoonse from the server. I use AFNetworking library and my code throws "The request timed out" error:</p>
  
  <pre><code>NSString *urlString = [NSString stringWithFormat:@"%@/account.do?JSON&amp;sysparm_action=getRecords",baseUrlString];
  
      NSString *login = [[NSUserDefaults standardUserDefaults] objectForKey:@"login"];
      NSString *password = [[NSUserDefaults standardUserDefaults] objectForKey:@"password"];
  
      [manager setRequestSerializer:[AFHTTPRequestSerializer serializer]];
      [manager.requestSerializer setAuthorizationHeaderFieldWithUsername:login password:password];
  
  
      [manager GET:urlString parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject) {
          NSLog(@"JSON: %@", responseObject);
          [self parseJsonWithAccountsData:responseObject];
      } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
          NSLog(@"Error: %@", operation.responseString);
          [self performSelectorOnMainThread:@selector(failedWithContactsDownload) withObject:nil waitUntilDone:YES];
      }];
  </code></pre>
  
  <p>Didn't find a way to set a timeout for <code>AFHTTPRequestOperationManager</code>. How can I do it?</p>