[erlang-questions] How to solve the blocking accept call in a tcp_listener process ?
Wed May 20 02:33:30 CEST 2009
On Wed, May 20, 2009 at 12:38:45AM +0100, Oscar Hellstr?m wrote:
> An example of a generic accept loop (that can be used with OTP) can be
> found here: http://code.hellstrom.st/hg.cgi/gen_tcpd/
> You might not want to use this, but I got tired of rewriting the accept
> loop every time... It was recently changed to have support acceptors as
Any downside to replacing a gen_server using prim_inet with this? I
don't need extreme performance, just a non-blocking tcp accept loop.
More information about the erlang-questions