Re: Is NSURLSession with NSURLSessionDataTask safe for streaming network connection?
Re: Is NSURLSession with NSURLSessionDataTask safe for streaming network connection?
- Subject: Re: Is NSURLSession with NSURLSessionDataTask safe for streaming network connection?
- From: Jens Alfke <email@hidden>
- Date: Tue, 02 Dec 2014 17:06:01 -0800
> On Dec 2, 2014, at 4:47 PM, Sasikumar JP <email@hidden> 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 server for a while. The timeout interval is configurable, so you could just make it incredibly long.
> Basically i want to know whether NSURLSession safe for streaming network connection?
Just "streaming" is kind of vague. Sounds like you mean the Shoutcast/Icecast streaming MP3 protocol? It should be, as that's basically just an HTTP request with an endless response.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden