I had similar problems before, when I read user information inside mnesia database <br>times to times from a proxy written in C. Each time, I acquire a connection via ei_connect()<br>and close it after user info is read.<br>
<br>After tracing, I found the reason to my problem, erl_connect use select() internally, <br>when fd is larger than 1024, the fd_set structure on stack gets corrupted, and the process<br>behavior becomes undetermined.<br>
<br>I post the patch here: <a href="https://github.com/weicao/otp/tree/erl_interface_replace_select_with_poll">https://github.com/weicao/otp/tree/erl_interface_replace_select_with_poll</a><br><br>Hope it solves your problem too.<br>
<br><div class="gmail_quote">2011/11/26 Andre Nathan <span dir="ltr"><<a href="mailto:andre@digirati.com.br">andre@digirati.com.br</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello<br>
<br>
I have a C node doing RPC on my Erlang cluster. From time to time I get<br>
Input/Output errors from ei_connect.<br>
<br>
I've found this thread which reports something similar, but apparently<br>
no solution was found:<br>
<br>
  <a href="http://erlang.org/pipermail/erlang-questions/2007-July/027711.html" target="_blank">http://erlang.org/pipermail/erlang-questions/2007-July/027711.html</a><br>
<br>
Since EIO is a kind of "generic error" in erl_interface, I was wondering<br>
if there is anything else I can do to try to find what's happening.<br>
<br>
One thing that I thought could be the cause of the problem is that I'm<br>
running the Erlang cluster with inet_dist_listen_min =<br>
inet_dist_listen_max = 9100; while I've had no problems with the Erlang<br>
cluster itself, I figured that maybe I was limiting its ability to<br>
handle concurrent connections by using a single port. However, changing<br>
inet_dist_listen_max to 9110 didn't solve the problem, so I guess it's<br>
something else.<br>
<br>
Does anyone have any idea about this?<br>
<br>
Thanks,<br>
Andre<br>
<br>
<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><br>Best,<br><br>Wei Cao<br>