Sometimes, these errors appears when run the code with an input file:
[-] Error connecting to host http://115.128.147.165:11311: Cannot connect to host 115.128.147.165:11311 ssl:None [Too many open files]
Not a ROS host
[-] Error connecting to host http://188.164.19.108:11311: Cannot connect to host 188.164.19.108:11311 ssl:None [Too many open files]
Solved. Just added a semaphore for avoiding concurrent connections. I tried with the large file @LanderU provided in zmap_results (65000+ hosts) and had no problems. Tak!
Sometimes, these errors appears when run the code with an input file: