When the WMI Response is: "Name or service not known" caused by RPC Service is not available (e.g. System to be queried is under heavy load) the connection to this particular system will hang infinitely. The issue in such a circumstance is, that the connection won't be closed as expected.
I fixed this by adding finally: in wmi_conn.py to the try: + except:block:
When the WMI Response is: "Name or service not known" caused by RPC Service is not available (e.g. System to be queried is under heavy load) the connection to this particular system will hang infinitely. The issue in such a circumstance is, that the connection won't be closed as expected.
I fixed this by adding
finally:
in wmi_conn.py to thetry:
+except:
block:That way, the _dcom.disconnect() will be executed no matter what.