• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is NSURLSession with NSURLSessionDataTask safe for streaming network connection?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Is NSURLSession with NSURLSessionDataTask safe for streaming network connection?
      • From: Sasikumar JP <email@hidden>
References: 
 >Is NSURLSession with NSURLSessionDataTask safe for streaming network connection? (From: Sasikumar JP <email@hidden>)

  • Prev by Date: Is NSURLSession with NSURLSessionDataTask safe for streaming network connection?
  • Next by Date: Re: Is NSURLSession with NSURLSessionDataTask safe for streaming network connection?
  • Previous by thread: Is NSURLSession with NSURLSessionDataTask safe for streaming network connection?
  • Next by thread: Re: Is NSURLSession with NSURLSessionDataTask safe for streaming network connection?
  • Index(es):
    • Date
    • Thread