beremiz

Parents fce6ab7ae156
Children e8760be772d5
PYRO(S): Added timeout on client side to allow unfreezing IDE after some time when communication with target dropped
--- a/connectors/PYRO/__init__.py Wed Dec 05 13:05:51 2018 +0100
+++ b/connectors/PYRO/__init__.py Wed Dec 05 14:05:35 2018 +0100
@@ -97,6 +97,8 @@
#confnodesroot.logger.write_error(traceback.format_exc())
return None
+ RemotePLCObjectProxy.adapter.setTimeout(60)
+
def PyroCatcher(func, default=None):
"""
A function that catch a Pyro exceptions, write error to logger