• 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: Implementing proxy support
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implementing proxy support


  • Subject: Re: Implementing proxy support
  • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Date: Mon, 21 Jul 2014 10:21:07 +0100

On 20 Jul 2014, at 19:40, Jens Alfke <email@hidden> wrote:

> The networking code you use in an NSURLProtocol should be asynchronous (or shifted to another thread/queue.) Never block the thread your NSURLProtocol instance is called on — it’s a single thread used by CFNetwork for all its internal processing, and blocking it will cause performance problems in your app.

All good advice.  For a concrete example of this, check out the CustomHTTPProtocol sample code.

<https://developer.apple.com/library/ios/#samplecode/CustomHTTPProtocol/>

Share and Enjoy
--
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


References: 
 >Implementing proxy support (From: Daryle Walker <email@hidden>)
 >Re: Implementing proxy support (From: Jens Alfke <email@hidden>)
 >Re: Implementing proxy support (From: Daryle Walker <email@hidden>)
 >Re: Implementing proxy support (From: Jens Alfke <email@hidden>)
 >Re: Implementing proxy support (From: Daryle Walker <email@hidden>)
 >Re: Implementing proxy support (From: Daryle Walker <email@hidden>)
 >Re: Implementing proxy support (From: Daryle Walker <email@hidden>)
 >Re: Implementing proxy support (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: NTLM authentication
  • Next by Date: Re: services being killed by OS
  • Previous by thread: Re: Implementing proxy support
  • Next by thread: Using NSURLSession for uploading lots of prioritized files
  • Index(es):
    • Date
    • Thread