NSURLConnection receives data even if no data was thrown back
- by Anna Fortuna
Let me explain my situation. Currently, I am experimenting long-polling using NSURLConnection. I found this and I decided to try it.
What I do is send a request to the server with a timeout interval of 300 secs. (or 5 mins.)
Here is a code snippet:
NSURL *url = [NSURL URLWithString:urlString];
NSURLRequest *request = [NSURLRequest…