• 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: Prevent NSURLConnection retry
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Prevent NSURLConnection retry


  • Subject: Re: Prevent NSURLConnection retry
  • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Date: Wed, 30 Nov 2011 13:13:32 +0000

On 29 Nov 2011, at 18:31, Jeff Johnson wrote:

> Is there any way to prevent NSURLConnection from retrying after the connection is closed?

There are a bunch of different retry mechanisms built in to NSURLConnection.  Most of them don't have knobs to twiddle, and you'll have to move to a lower layer to prevent the retry (as per Jens's suggestion).  However, before you do that you should check whether your -connection:willSendRequest:redirectResponse: delegate method is being called.  If so, you can use it to stop the retry.

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: 
 >Prevent NSURLConnection retry (From: Jeff Johnson <email@hidden>)

  • Prev by Date: Re: Prevent NSURLConnection retry
  • Next by Date: Re: Prevent NSURLConnection retry
  • Previous by thread: Re: Prevent NSURLConnection retry
  • Index(es):
    • Date
    • Thread