<div dir="ltr"><div class="gmail_extra">No, all this is not the same.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">When you receive error,timeout from gen_tcp:send  you don't know how much data have been sent.</div><div class="gmail_extra"><br></div><div class="gmail_extra">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.</div></div>