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: Sasikumar JP <email@hidden>
- Date: Wed, 03 Dec 2014 07:24:30 +0530
Jens,
On Wed, Dec 3, 2014 at 6:36 AM, Jens Alfke <email@hidden> wrote:
>
> 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.
>
>
Thank you for your response. I will try with increasing the
NSURLSessionConfiguration.timeOutIntervalForRequest.
> 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.
>
>
Yes. I meant Shoutcast/Icecast streaming.
> --Jens
>
--- Sasikumar
_______________________________________________
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