title: NSURLSession: How to increase time out for URL requests?
body: <p>I am using iOS 7's new <code>NSURLSessionDataTask</code> to retrieve data as follows:</p>
  
  <pre><code>NSURLSession *session = [NSURLSession sharedSession];
  
  NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:
  request completionHandler:
  ^(NSData *data, NSURLResponse *response, NSError *error) {
  //
  }];
  </code></pre>
  
  <p>How can I increase the time out values to avoid the error <code>"The request timed out"</code> (in  <code>NSURLErrorDomain</code> Code=<code>-1001</code>)?</p>
  
  <p>I have checked the documentation for <a href="https://developer.apple.com/library/ios/documentation/Foundation/Reference/NSURLSessionConfiguration_class/Reference/Reference.html#//apple_ref/doc/uid/TP40013440-CH1-SW32">NSURLSessionConfiguration</a> but did not find a way to set the time out value.</p>
  
  <p>Thank you for your help!</p>