Efficiently accepting TCP connections

joel reymont joelr1@REDACTED
Thu May 12 13:11:55 CEST 2005

I promise I'll go and read through all the gen_tcp threads as soon as
I'm done sending this message but...

Is there an efficient idiom for handling gen_tcp connections on the server side?

I already proxy outgoing requests as my poker player processes are
Joe's "middlemen". I think I can launch up to 135,000 of these
middlemen in my 27,000 simultaneous games test (over 400K processes

I think I can increase the number of open sockets per process to
unlimited with Mac OSX (as root). I wouldn't normally keep so many
connections on a single process but I'm interested in seeing how it
will work out.

All that having been said, what's the efficient way of accepting a new
connection with gen_tcp? I know there are variations and this is why
I'm asking.

    Thanks, Joel


More information about the erlang-questions mailing list