Re: NSURLConnection callbacks in the presence of errors
Re: NSURLConnection callbacks in the presence of errors
- Subject: Re: NSURLConnection callbacks in the presence of errors
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Mon, 13 Jan 2014 10:19:08 +0000
On 10 Jan 2014, at 18:13, Jens Alfke <email@hidden> wrote:
> We may actually be seeing the same behavior. I notice that in your example the delegate’s data callback wasn’t invoked until your fake server had sent about 512 bytes of response.
Right. The underlying cause of this delay is NSURL{Session,Connection}'s content type sniffing: to handle certain edge cases NSURL{Session,Connection} must wait for a certain amount of data to arrive so that it can feed that data into the content type sniffing code. There should be an option to disable that feature and we're using <rdar://problem/8971926> to track that requirement.
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