home · contact · privacy
Server/py: Optimize polling in read_command().
authorChristian Heller <c.heller@plomlompom.de>
Fri, 6 Mar 2015 12:53:28 +0000 (13:53 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 6 Mar 2015 12:53:28 +0000 (13:53 +0100)
plomrogue-server.py

index 05975528d6e66b0c34de55734e7d2e11b9572955..c6bdd44d2832817a93e1ef549c429eb00e3205d3 100755 (executable)
@@ -269,7 +269,7 @@ def read_command():
     Keep building return string until a newline is encountered. Pause between
     unsuccessful reads, and after too much waiting, run server_test().
     """
-    wait_on_fail = 1
+    wait_on_fail = 0.03333
     max_wait = 5
     now = time.time()
     command = ""