<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>Thank you Sergej. </div><div><br></div><div>I'm currently using the send_timeout gen_tcp option. </div><div><br></div><div>Best,</div><div>r.</div><div><br>On 14 ott 2015, at 16:50, Sergej Jurečko <<a href="mailto:sergej.jurecko@gmail.com">sergej.jurecko@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div><div><div>Actually one can also use: inet_tcp:send(Sock,Data,[nosuspend]) which will return {error,busy} if it is unable to send immediately.</div><div><br></div><div><br></div><div>Sergej</div><div><div id="MAC_OUTLOOK_SIGNATURE"></div></div></div></div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:12pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> <<a href="mailto:erlang-questions-bounces@erlang.org">erlang-questions-bounces@erlang.org</a>> on behalf of Tobias Schlager<br><span style="font-weight:bold">Date: </span> Monday 12 October 2015 at 17:14<br><span style="font-weight:bold">To: </span> Ulf Wiger, Roberto Ostinelli<br><span style="font-weight:bold">Cc: </span> erlang questions<br><span style="font-weight:bold">Subject: </span> Re: [erlang-questions] Exometer, Recon and prim_inet:send/2?<br></div><div><br></div><div dir="ltr"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><div ocsi="0" fpstyle="1" class="" style="word-wrap:break-word"><div style="direction: ltr;font-family: Arial;color: #000000;font-size: 10pt;">Hi,<br><br>
Graphite does also support UDP. Maybe that could be an option for you. Fire and forget might in this case be better than loading your system. Another possibility would be to automatically close the TCP session when the other end gets unresponsive using the
 send_timeout option.<br><br>
Regards<br>
Tobias<br><br></div></div></div>
_______________________________________________
erlang-questions mailing list
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</span>
</div></blockquote></body></html>