I've recently finished an app which connects to a number of web services provided by my client. I've done this countless times in the past without any problems.
However, for some reason, with one of the services, which downloads about 250kb-1mb of data.
+ (void)connection:(MCURLConnection *)connection didReceiveData:(NSData *)data
Occasionally just stops after the first call.
Here's the log when it works
2014-08-19 11:57:43.270 MiniCheckout[886:60b] didReceiveResponse: didGetProductsForShop:
2014-08-19 11:57:43.270 MiniCheckout[886:60b] Code: 200
2014-08-19 11:57:43.271 MiniCheckout[886:60b] didReceiveData
2014-08-19 11:57:43.457 MiniCheckout[886:60b] didReceiveData
2014-08-19 11:57:43.645 MiniCheckout[886:60b] didReceiveData
2014-08-19 11:57:43.830 MiniCheckout[886:60b] didReceiveData
2014-08-19 11:57:44.003 MiniCheckout[886:60b] didReceiveData
2014-08-19 11:57:44.007 MiniCheckout[886:60b] didReceiveData
2014-08-19 11:57:44.169 MiniCheckout[886:60b] ConnectionFinished:didGetProductsForShop:
And when it doesn't (which is too often!)
2014-08-19 11:57:43.270 MiniCheckout[886:60b] didReceiveResponse: didGetProductsForShop:
2014-08-19 11:57:43.270 MiniCheckout[886:60b] Code: 200
2014-08-19 11:57:43.271 MiniCheckout[886:60b] didReceiveData
That's it, it just stops!
I have a timer which waits 60 seconds just so the app doesn't "lock up". But it occurs way too often and the client is not happy with this.
The web server/services are provided by the client and the issue occurs over Wifi and 3G.
I've handled web services countless times without problems. But I'm stumped as to why this is happening.