[erlang-questions] gen_tcp:recv and hairloss

Colm Dougan <>
Sat Nov 8 16:35:42 CET 2008


On Sat, Nov 8, 2008 at 4:20 AM, Kevin <> wrote:
>
> Basically I can't read from the socket unless I come back up out of the
> Fsm and let the same loop get the next line.  What is so
> special about the gen_server process that can *read* from the socket and
> the fsm process that cant?!?

This is just a shot in the dark - but if you passed the socket to
another process and didn't do  gen_tcp:controlling process then that
may cause that kind of issue.

Colm



More information about the erlang-questions mailing list