<div dir="ltr">I forget to tell that I've also increased system ulimit,<div><br>On Thursday, January 2, 2014 12:08:04 AM UTC+3:30, Behrad Zari wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">I randomly receive eaddrnotavail (and some socket_closed_remotely) when connecting to a remote CouchDB in a high concurrency of processing some events in my erlang process. Since there are many other http connections between my process and nodejs and redis services on the same local machine, I've increased OS's local_port_range and ERL_MAX_PORTS but still got that error.</span><div style="font-family:arial,sans-serif;font-size:13px">
When getting the error, retrying the http request gets OK.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Any other OS or Erlang specific tuning? or what?</div>
</div>
</blockquote></div></div>