I am trying to insert 10000 records in redis from erlang using gen_server. However, i get following exception
exception exit: {connection_error,{connection_error,eaddrnotavail}}
Note:-
- Ports range on redis server is sufficient
- Redis is configured to accept 10000 connections at once
- I also tried using timer:sleep to rule out the possibility of connections are getting full.
- I am starting connection , firing query and closing connection immediately
- Call from gen_server to redis is synchronous
- I am using eredis as a library
- I get this error approximately 200 to 500 insertions in redis