Re: Crash with FD_SET when there are more than 1024 open files
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=haller-berlin.de; s=mail_2009081900; h=Message-ID:Date:From:Subject:In-Reply-To:To; bh=/y7GaFe0HOgJ8aYhqzmLpG8DDpuCVDcSa1wiQS+VMRM=; b=vByXjmZdD9nZ4Cq8Uh4zH/q2WOWSbKsvX6hQNLL84yKFfLqS+iNn75HPXbAPonjFJHMsJKPdS9hboKBqJ1eAPtuZoDSmNmkrcv3ybFl0uC2a285FYwZf5bUgAYryblDJIz1V8s6yvlvRB6q5SRmy8ZobRg41nJ8E8AFM5pkJpog=; User-agent: MacSOUP/2.8.3 (Mac OS X version 10.6.3 (x86)) Joel Reymont <joelr1@gmail.com> wrote:
The issue you may have is that Bonjour was compiled with FD_SETSIZE of 1024.
Exactly, that's what I'm talking about. And my concern is that other code may be running in my process that has the same issue (since it's such a common pattern, in the Unix world at least).
I used to routinely open about 50K sockets.
Then you may just have been lucky. The Bonjour problem I discribed occurs whenever you open an NSOpenPanel or NSSavePanel while you are on a LAN with other Macs. So either this doesn't apply to you, or the code did overwrite random bits somewhere on your stack and you just didn't notice. -- Stefan Haller Berlin, Germany http://www.haller-berlin.de/ _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
lists@haller-berlin.de