TCP port sends EXIT message

Per Andersson <>
Wed Dec 8 12:00:27 CET 2010


Hi there!

I have followed the non-blocking TCP server tutorial [0] and now, on a specific
message, I want the acceptor fsm to use my connection manager and hand over the
socket to another gen_fsm.  When this is done the gen_fsm that should take
control over the socket crashes because the TCP socket sends a message
{'EXIT', #Port<0.1024>, normal} which it does not handle. Also, the socket is
closed.

Basically in some short code

ACCEPTOR

receive
    {tcp, Socket, <<"CONTROL MESSAGE">>} ->







Best,
Per


More information about the erlang-questions mailing list