cloudbase / PyMI

A blazing fast replacement for the Python WMI module
Apache License 2.0
21 stars 14 forks source link

Add operation timeout support #24

Closed petrutlucian94 closed 8 years ago

petrutlucian94 commented 8 years ago

In some cases, we may want to ensure that certain operations will not block undefinetely.

MI allows us to set 'global' operation timeouts, using destination options. Also, when invoking methods we can override the default timeouts, if needed, passing operation options.

This change exposes those timeouts, allowing setting a default timeout using the 'DEFAULT_OPERATION_TIMEOUT' global variable. Also, invoked methods will now accept the 'operation_timeout' kwarg.