title: cancel a SynchronousRequest in iPhone SDK. (TIMEOUT Interval not working)
body: <p>I've queried this forum for hours looking for an idea/answer/solution for my problem, but came up empty every time.</p>
  
  <p>i have created a SynchronousRequest using the following:</p>
  
  <pre><code>    NSMutableURLRequest *theRequest = [[NSMutableURLRequest alloc] initWithURL:url];
      NSString *msgLength = [NSString stringWithFormat:@"%d", [params length]];
      [theRequest addValue: msgLength forHTTPHeaderField:@"Content-Length"];
      [theRequest setHTTPMethod:@"POST"];
      [theRequest setTimeoutInterval:3.0];
      [theRequest setCachePolicy:NSURLRequestReturnCacheDataElseLoad];
      [theRequest setHTTPBody: [params dataUsingEncoding:NSUTF8StringEncoding]];
      NSData  *aData = [NSURLConnection sendSynchronousRequest:theRequest returningResponse:&amp;response error:&amp;error];
  </code></pre>
  
  <p>the connection is established, and the data is retrieved successfully to aData.
  but, when there is a connection problem, or the server is not available, the request is attempting to connect for <strong>75 seconds</strong> which is tooooo much time for the timeout interval,
  i have added the <code>setTimeoutInterval</code> parameter (with 3 seconds) but it does not affect the connection, </p>
  
  <p>i saw some answers from people saying that i should use NSTimer, and runLoop,
  but it's not clear to me how this should be implemented.</p>
  
  <p>PLEASE HELP!</p>
  
  <p>the users are waiting 75 seconds before they get a timeout error message! it's ridiculous</p>
  
  <p>appreciate your help. </p>