• 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: Bandwidth throttling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bandwidth throttling


  • Subject: Re: Bandwidth throttling
  • From: email@hidden
  • Date: Tue, 27 Oct 2009 15:40:10 -0400

So if I'm understanding correctly, there is no simple way to do so via NSURLConnection. I really didn't want to have to go down another layer deeper. Ugh.


On Oct 19, 2009, at 5:16 AM, Quinn wrote:

At 13:26 -0400 16/10/09, email@hidden wrote:
I'm writing a program that uses an NSURLConnection to download data off a server and would like to be able to control how much bandwidth it uses.

What Peter said plus... one way to close the TCP window is to just stop reading data out of the receive socket buffer. This is not a particularly elegant solution to download throttling, but it will work. However, this presents a gotcha when you use NSURLConnection, because NSURLConnection does a read and buffer in user space behind your back. So, if you're going to do something like this, you probably want to drop down a layer to CFHTTPStream.


S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/ >
Apple Developer Relations, Developer Technical Support, Core OS/ Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Bandwidth throttling
      • From: Quinn <email@hidden>
References: 
 >Bandwidth throttling (From: email@hidden)
 >Re: Bandwidth throttling (From: Quinn <email@hidden>)

  • Prev by Date: Re: TCP limits
  • Next by Date: Re: Bandwidth throttling
  • Previous by thread: Re: Bandwidth throttling
  • Next by thread: Re: Bandwidth throttling
  • Index(es):
    • Date
    • Thread