[erlang-questions] Building a Non-blocking TCP server using OTP principles

Samuel Tesla samuel.tesla@REDACTED
Thu Aug 23 01:54:03 CEST 2007

On 8/22/07, Claes Wikström <klacke@REDACTED> wrote:
> This is a bit like trying to do something clever when malloc()
> fails - pondering on the issue for a couple of years eventually
> the only sane thing to do is exit(1), same thing with accept() here.

That's pretty much the conclusion I came to.  In the application I'm writing
(that got me going down this road in the first place) I'm just bailing on
that process.  But, I should probably exit the whole app.

But, beyond that, some simple exit handling makes the blocking sub-process
work great for making a parallel TCP server.

-- Samuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070822/dad3f2dd/attachment.htm>

More information about the erlang-questions mailing list