Packets Fallen During an HTTP 1.1 Request Sent by NSURLConnection

I use the following code to configure a chunked HTTP 1.1 request (the request itself is SOAP, but I don't think this is especially important):

NSMutableURLRequest* request = [NSMutableURLRequest requestWithURL:url]; ... NSInputStream *dataStream = [NSInputStream inputStreamWithFileAtPath:_tempFilePath]; [request setHTTPBodyStream:dataStream]; self.p_connection = [[NSURLConnection alloc] initWithRequest:request delegate:self startImmediately:YES]; 

This seems fine, if only the request is too large, I see that some packets are received randomly in WireShark - it refers to it as "the previous TCP segment was not captured." I think the size of the request matters only because accidentally dropping packets is more likely, but otherwise it is a more fundamental problem.

Does anyone have any ideas what to play here? Is this an NSURLConnection error or the way I use it?

+1
objective-c nsurlconnection wireshark
source share

All Articles