Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Prevent NSURLConnection retry
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Prevent NSURLConnection retry



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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.