title: RestKit RKRequests arent sent immediately
body: <p>I am using the great RestKit Framework for an iPhone Application.
  I have got a method, where I send requests to a webservice. Sometimes four or more requests per 30 seconds. </p>
  
  <p>My sendMethod looks like: </p>
  
  <pre><code> - (void) sendLocation {
  
  NSString *username = [userDefaults objectForKey:kUsernameKey];    
  NSString *password = [userDefaults objectForKey:kPasswordKey];
  NSString *instance = [userDefaults objectForKey:kInstanceKey];
  NSString *locationname = self.location.locationname;
  
  NSString *url = [[NSString alloc] initWithFormat:@"http://www.someadress.com/%@", instance];
  
  RKClient *client = [RKClient clientWithBaseURL:url username:username password:password];
  
  // Building my JsonObject
  NSDictionary *locationDictionary = [NSDictionary dictionaryWithObjectsAndKeys: username, @"username", locationname, @"locationname", nil];
  NSDictionary *jsonDictionary = [NSDictionary dictionaryWithObjectsAndKeys:locationDictionary, @"location", nil];
  
  NSString *JSON = [jsonDictionary JSONRepresentation];
  RKParams *params = [RKRequestSerialization serializationWithData:[JSON dataUsingEncoding:NSUTF8StringEncoding]MIMEType:RKMIMETypeJSON]; 
  
  [client  post:@"/locations" params:params delegate:self];
   }
  </code></pre>
  
  <p>Sometimes (especially when sending more requests after another) the value of the count property of the RKRequestQueue Object is > 1. 
  When my application enters background and then enters foreground the requests in the queue (when foreground is entered) are sent to my Webservice and the delegate</p>
  
  <pre><code>- (void)request:(RKRequest*)request didLoadResponse:(RKResponse*)response {)
  </code></pre>
  
  <p>for all requests will be called.</p>
  
  <p>So the question is:
   Why doesnt RestKit send some requests immediately (my Webservice doesnt receive anything while a request is stored in the queue)???</p>
  
  <p>Does anyone know a solution or had/has the same problem?</p>