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
> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to