Re: Networking framework crash
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