1014 tcp connections and a crash

Bjorn Gustavsson <>
Thu Jun 9 14:09:19 CEST 2005


Yes, poll() is indeed emulated with select() on Mac OS 10.3.9,
and the bug could actually be in the poll() emulation code.

In R10B-6, select() will be used on both Mac OS 10.3 and Mac OS 10.4.
(There is a poll() on Mac OS 10.4, but it doesn't handle devices.)
What I have done is to change configure to revert to select() if
poll() is either emulated by select() or doesn't handle devices.

/Bjorn

 writes:

> On Tue, Jun 07, 2005 at 01:40:09PM +0200, joel reymont wrote:
> > Folks,
> > 
> > I´m using 10RB3 and my erl crashes with a segmentation violation after
> > roughly 1014 TCP socket connections are established to it. Is this a
> > bug, feature or should I go with the latest version? I´m on Mac OSX
> > 10.3.9.
> > 
> 
> 10.3, isn't that where poll is emulated by select().
> It could be that the fd_sets just get silently overflowed.
> 
> Try to write a normal C program that open +1024 sockets
> 
> What is FD_SETSIZE set to in the header files.
> 
> 
> /klacke
> 
> 
> -- 
> Claes Wikstrom                        -- Caps lock is nowhere and
> http://www.hyber.org                  -- everything is under control          
> 

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list