<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 23, 2013 at 8:10 AM, Stefan Hellkvist <span dir="ltr"><<a href="mailto:hellkvist@gmail.com" target="_blank">hellkvist@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">According to the manual pages of gen_tcp all default values for timeout values are set to infinity which to me would imply that the connection can close and all that and experience other errors but I should at least never get a etimedout value unless the length of "infinity" is highly exaggerated. </blockquote>
</div><br>While the Erlang VM will not result in a timeout, the underlying operating system can send the ETIMEDOUT error (see man 2 recv). So even if you specifically ask for a poll on the socket, there may still be an underlying error propagating to you. The most probable reason for this has to do with something low-level TCP connectivity. I would suggest running tcpdump on the connection and inspect the data (perhaps in Wireshark).</div>
<div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>