title: NSURLConnection Never finish
body: <p>i have the next code:</p>
  
  <pre><code>NSURL *url = [NSURL URLWithString:@"http:...."];
  NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:url];
  NSString *msgLength = [NSString stringWithFormat:@"%d", [""soapMessage"" length]];
  
  [theRequest addValue: @"text/xml; charset=utf-8" forHTTPHeaderField:@"Content-Type"];
  [theRequest addValue: msgLength forHTTPHeaderField:@"Content-Length"];
  [theRequest setHTTPMethod:@"POST"];
  [theRequest setHTTPBody: [""soapMessage"" dataUsingEncoding:NSUTF8StringEncoding]];
  [theRequest setTimeoutInterval:20];
  
  NSURLConnection *theConnection = [[NSURLConnection alloc] initWithRequest:theRequest delegate:self];
  [theConnection start];
  </code></pre>
  
  <p>Then sometimes, when i click a lot of times <em>(Just to try where can fail the app)</em> in my interface in the buttons assigned to start a new connection, the connection doesn't give a reply (I send the request but looks like is blocked after).</p>
  
  <p>I would like to know <strong>what is the use of "setTimeoutInterval"?</strong> AND if there are some ways to <strong>limit the time to wait one response?</strong></p>
  
  <p>Thanks!</p>