Beremiz_service.py
changeset 1929 ed95aa627647
parent 1919 ccea0fa6ea91
child 1934 67b06b30f2bd
--- 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()