• 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: NSURLConnection callbacks in the presence of errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSURLConnection callbacks in the presence of errors
      • From: Jens Alfke <email@hidden>
References: 
 >Re: NSURLConnection callbacks in the presence of errors (From: Jens Alfke <email@hidden>)
 >Re: NSURLConnection callbacks in the presence of errors (From: "Quinn \"The Eskimo!\"" <email@hidden>)
 >Re: NSURLConnection callbacks in the presence of errors (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: NSURLConnection callbacks in the presence of errors
  • Next by Date: Re: NSURLConnection callbacks in the presence of errors
  • Previous by thread: Re: NSURLConnection callbacks in the presence of errors
  • Next by thread: Re: NSURLConnection callbacks in the presence of errors
  • Index(es):
    • Date
    • Thread