[erlang-questions] Erlang get_tcp:recv data length

Max Lapshin max.lapshin@REDACTED
Thu Feb 24 09:01:36 CET 2011

In fact, using gen_tcp:recv is a bad idea for a "rock solid" server,
because you will not be able to stop process or reload its code.

Proper way is to inet:setops(Socket, [{active,once}]), use buffer and
use erlang:decode_packet to decode lines

More information about the erlang-questions mailing list