Fixed pyro timeout for runtime, was set too short and runtime was disconnecting when building PLC
authorEdouard Tisserant
Mon, 12 Feb 2018 13:18:53 +0100
changeset 1929 ed95aa627647
parent 1928 ef6902c824f2
child 1930 e6de7df5f401
Fixed pyro timeout for runtime, was set too short and runtime was disconnecting when building PLC
Beremiz_service.py
--- a/Beremiz_service.py	Mon Feb 12 11:34:07 2018 +0100
+++ b/Beremiz_service.py	Mon Feb 12 13:18:53 2018 +0100
@@ -423,7 +423,9 @@
             pyro.initServer()
             self.daemon = pyro.Daemon(host=self.ip_addr, port=self.port)
             # pyro never frees memory after connection close if no timeout set
-            self.daemon.setTimeout(1)
+            # taking too small timeout value may cause
+            # unwanted diconnection when IDE is kept busy for long periods
+            self.daemon.setTimeout(60);
             self.Start()
             self.daemon.requestLoop()
             self.daemon.sock.close()