beveradb / pysonofflan

Python interface for controlling Sonoff smart switches/plugs running original Itead firmware, locally, in "LAN mode".
MIT License
30 stars 37 forks source link

pysonofflan discover: too any open files #117

Open rgiordani71 opened 4 years ago

rgiordani71 commented 4 years ago

Description

Exception in thread Thread-486: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 926, in _bootstrap_inner File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 870, in run File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pysonofflan/discover.py", line 69, in probe_ip File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socket.py", line 151, in init OSError: [Errno 24] Too many open files

What I Did

pysonofflan discover
beachhouse123 commented 3 years ago

Try increasing the ulimit from it's default value of 256

e.g. ulimit -n 10000