homebridge-magichome-platform icon indicating copy to clipboard operation
homebridge-magichome-platform copied to clipboard

Add timeout of 60s for exec-ed commands as a safeguard.

Open valentinvarbanov opened this issue 6 years ago • 1 comments

The python would sometimes get stuck on executing command like: python /usr/local/lib/node_modules/homebridge-magichome-platform/src/flux_led.py 10.0.x.x -i. This python process would stuck on near 100% cpu usage and the raspberry pi would have increased cpu temperature by 20-30 degrees.

This change should not have any negative side effects, as in normal use cases 60s should be enough for a command to execute.

valentinvarbanov avatar Dec 29 '18 12:12 valentinvarbanov

@sahilchaddha Do you plan to merge this?

valentinvarbanov avatar May 22 '20 17:05 valentinvarbanov