Fixed pyro timeout for runtime, was set too short and runtime was disconnecting when building PLC
--- 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()