Re: Crash with FD_SET when there are more than 1024 open files
Re: Crash with FD_SET when there are more than 1024 open files
- Subject: Re: Crash with FD_SET when there are more than 1024 open files
- From: Gabriel Beauchemin <email@hidden>
- Date: Thu, 15 Apr 2010 15:15:05 -0400
This is a very well know issue. Work-arounds include using
epoll(linux) or kqueue(bsd).
select() doesn't scale very well when handling a large number of fd
(10k+), and will certainly crash (stack corruption) when more than
FD_SETSIZE fds are opened.
On Thu, Apr 15, 2010 at 2:18 PM, Joel Reymont <email@hidden> wrote:
> I was running Erlang which I compiled myself just so that it used my modified FD_SETSIZE.
>
> On Apr 15, 2010, at 7:03 PM, Stefan Haller wrote:
>
>> 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.
>>
>
> ---
> http://es.linkedin.com/in/joelreymont
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Darwin-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden