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

Re: Spoon-feeding NSURLConnection


  • Subject: Re: Spoon-feeding NSURLConnection
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 27 Jun 2012 16:30:19 -0700


On Jun 27, 2012, at 1:12 PM, Josh Graessley wrote:

You can set the CFNETWORK_DIAGNOSTIC environment variable when starting your process to enable extra debugging.

Figured out the problem by watching the session video — it's CFNETWORK_DIAGNOSTICS.
Also, the output doesn't go to the Xcode console, for some reason, but it does log one message to the console naming the file to which it does log. I also see the messages in 'All Messages' in Console.app.
Also, this only appears to work on Mac OS, while I can only reproduce the bug on iOS :-(

CFNETWORK_DIAGNOSTIC=1
Enables internal CFNetwork event and state logging
CFNETWORK_DIAGNOSTIC=2
Adds information about how CFNetwork decides to make and re-use TCP sockets

With a value of "2" all I saw were message that start "CFNetwork Diagnostic: Enqueue Request"; and all these list are the details of the request, not any extra information about which socket the requests will be sent on.

CFNETWORK_DIAGNOSTIC=3
Adds decrypted bytes in and out - this one is dangerous and should be used with caution.

When I went up to this level I _did_ see the info I wanted, because the packet dumps are prefaced with the file descriptor ID and the remote endpoint, which lets me distinguish different sockets.

But again, this isn't helping me because I can't reproduce the bug on Mac OS. I thought it might take a larger number of simultaneous requests to make it happen, but I've gone up to 20 and haven't triggered it yet.

—Jens
 _______________________________________________
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: Spoon-feeding NSURLConnection
      • From: Jens Alfke <email@hidden>
References: 
 >Spoon-feeding NSURLConnection (From: Jens Alfke <email@hidden>)
 >Re: Spoon-feeding NSURLConnection (From: Josh Graessley <email@hidden>)

  • Prev by Date: Re: Spoon-feeding NSURLConnection
  • Next by Date: Re: Spoon-feeding NSURLConnection
  • Previous by thread: Re: Spoon-feeding NSURLConnection
  • Next by thread: Re: Spoon-feeding NSURLConnection
  • Index(es):
    • Date
    • Thread