Is NSURLSession with NSURLSessionDataTask safe for streaming network connection?

2014-12-02 Thread Sasikumar JP
Hi, I have a streaming radio application in appstore, which uses Core Foundation URL Api to establish the streaming connection. It works fine. Recently i have replaced the CF URL API code with NSURLSession with NSURLSessionDataTask. It also works fine in most of the time. But some times,

Re: Is NSURLSession with NSURLSessionDataTask safe for streaming network connection?

2014-12-02 Thread Jens Alfke
On Dec 2, 2014, at 4:47 PM, Sasikumar JP jps...@gmail.com wrote: But some times, connection is terminated with -1001(NSURLErrorTimedOut) error code (may be after 10 or 15 mins). I have tried with different radio URLs. the same behaviour. That will happen if no data is received from the

Re: Is NSURLSession with NSURLSessionDataTask safe for streaming network connection?

2014-12-02 Thread Sasikumar JP
Jens, On Wed, Dec 3, 2014 at 6:36 AM, Jens Alfke j...@mooseyard.com wrote: On Dec 2, 2014, at 4:47 PM, Sasikumar JP jps...@gmail.com wrote: But some times, connection is terminated with -1001(NSURLErrorTimedOut) error code (may be after 10 or 15 mins). I have tried with different radio