[erlang-questions] TCP receive in gen_server

David N Murray dmurray@REDACTED
Wed May 12 14:33:58 CEST 2010


On May 12, David N Murray scribed:

> I'm still seeing the same problem.  No data from the socket is sent to
> handle_info unless I first send something to the socket, and then, only
> one packet/message from the server is delivered at a time, even though
> there are at least 3 messages pending:

I figured it out.  I had to call inet:setopts(Socket, [{active, true}])
after the gen_tcp:send/2, too.

Thanks,
Dave


More information about the erlang-questions mailing list