• 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: Kyle Sluder <email@hidden>
  • Date: Thu, 05 Feb 2015 18:22:46 -0600

On Thu, Feb 5, 2015, at 05:54 PM, Graham Cox wrote:
>
> > On 6 Feb 2015, at 6:48 am, Greg Parker <email@hidden> wrote:
> >
> > You can use getrlimit(RLIMIT_NOFILE, …) to query the limit in your process, and setrlimit(RLIMIT_NOFILE, …) to attempt to raise it. The default limit may be as low as 256, depending on OS version and on how the process is launched. (Note that each two-way network connection uses two file descriptors.) setrlimit() should be able to raise the file descriptor limit to a few thousand unless your system administrator is mean.
>
>
> This is great. Running from XCode I get 7168, archiving and exporting a
> final build of my app, I get 256... bingo! Only the built version was
> seeing this crash, another reason I was having a lot of trouble debugging
> it.


I'm not a Core OS engineer, so I have no idea how practical this is, but
I'd file a quick enhancement request anyway asking that Xcode spawn apps
in an uncustomized environment.

--Kyle

_______________________________________________

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


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>)
 >Re: Networking framework crash (From: Graham Cox <email@hidden>)
 >Re: Networking framework crash (From: Greg Parker <email@hidden>)
 >Re: Networking framework crash (From: Graham Cox <email@hidden>)

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