[erlang-questions] gen_tcp:send {error, timeout} and ways to restore situation?

Max Lapshin max.lapshin@REDACTED
Sun Sep 18 11:32:23 CEST 2016


No, all this is not the same.


When you receive error,timeout from gen_tcp:send  you don't know how much
data have been sent.

If you do not set  send_timeout, it means that there is default 3 hour
timeout and your process will hang virtuall forever.  Messages will flow
and flow into its message queue and it will consume all your memory till
OOM killer comes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160918/7e9be040/attachment.htm>


More information about the erlang-questions mailing list