PYRO(S): Added timeout on client side to allow unfreezing IDE after some time when communication with target dropped
authorEdouard Tisserant
Wed, 05 Dec 2018 14:05:35 +0100
changeset 2468 046303391dea
parent 2467 fce6ab7ae156
child 2469 e8760be772d5
PYRO(S): Added timeout on client side to allow unfreezing IDE after some time when communication with target dropped
connectors/PYRO/__init__.py
--- 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