Re: Prevent NSURLConnection retry
Re: Prevent NSURLConnection retry
- Subject: Re: Prevent NSURLConnection retry
- From: Mark Pauley <email@hidden>
- Date: Wed, 30 Nov 2011 10:17:54 -0800
There are network appliances which send FIN or RST on a connection that should otherwise be perfectly fine for keepalive. The solution for the greatest good is to retry once until we get a rude connection shut down on a freshly minted connection. If you're seeing a retry for a connection that wasn't sitting around in keep-alive, please file a bug.
_Mark
On Nov 30, 2011, at 8:13 AM, Quinn The Eskimo! wrote:
>
> On 30 Nov 2011, at 15:15, Jeff Johnson wrote:
>
>> Unfortunately, -connection:willSendRequest:redirectResponse: is only called once (with nil redirectResponse, as usual). Could that be considered a bug?
>
> That depends on how you look at it. Usually the willSendRequest delegate callback is associated with redirection, which clearly isn't happening in this case. OTOH, see below.
>
>> I replaced it with some CFStream code that I already had. Which I seem to be doing more and more often with NSURLConnection...
>
> Yeah, you need to start talking to a better class of server (-:
>
> Seriously though, any time you hit something that causes you to switch from NSURLConnection to CFHTTPStream, please let us know by filing a bug.
>
> <http://developer.apple.com/bugreporter/>
>
> Our general goal is you guys to use our high-level APIs. Obviously we can't accommodate every buggy broken server out there, but it's good to at least know about them.
>
> 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
_______________________________________________
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