• 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: Networking framework crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Networking framework crash


  • Subject: Re: Networking framework crash
  • From: Graham Cox <email@hidden>
  • Date: Thu, 05 Feb 2015 15:21:56 +1100

> On 5 Feb 2015, at 2:14 pm, Roland King <email@hidden> wrote:
>
>>
>>
>> I am googling EXC_GUARD but haven't found anything that breaks it down - just a bunch of people asking what it is.
>>
>
> Really? Google sent me to twitter sent me to devforums sent me to eskimo1. eg
>
> https://devforums.apple.com/message/914791#914791


Yep, I found that just after I sent my previous. Interesting, though a little difficult to relate exactly to my crash. I guess tcp_connection_get_socket() creates a file handle for the socket stream (?? guessing) and that's the one tripping the EXC_GUARD.

Do you or anyone else know if there's some inherent limit to the number of simultaneous sockets that can be opened? I'm supposing that there's a 1:1 correspondence between a NSURLSession and a socket, because of the description against [NSURLSession resetWithCompletionHandler:] says:

"This method empties all cookies, caches and credential stores, removes disk files, flushes in-progress downloads to disk, and ensures that future requests occur on a new socket"

This implies that there's a socket associated with the session.

Since I have also a 1:1 correspondence between my app's individual tasks and NSURLSession, I'm opening 1 socket per task as my app starts. So around 50 in my current test situation.


> if you aren’t opening your own files/creating your own filehandles I suspect you have a bugreport in your future.
>
> You might also try a post in CoreOS on devforums or on the networking apple mail list as that’s where Quinn hangs out.


That sounds like a good thing to try.

--Graham



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Networking framework crash
      • From: Greg Parker <email@hidden>
    • Re: Networking framework crash
      • From: Roland King <email@hidden>
References: 
 >Networking framework crash (From: Graham Cox <email@hidden>)
 >Re: Networking framework crash (From: Alex Zavatone <email@hidden>)
 >Re: Networking framework crash (From: Graham Cox <email@hidden>)
 >Re: Networking framework crash (From: Roland King <email@hidden>)

  • Prev by Date: Re: Networking framework crash
  • Next by Date: Re: Self describing NSObjects.
  • Previous by thread: Re: Networking framework crash
  • Next by thread: Re: Networking framework crash
  • Index(es):
    • Date
    • Thread