From e09a0c1881ced1ca2873c5f39791f6198004b4cd Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 6 Mar 2015 13:53:28 +0100 Subject: [PATCH] Server/py: Optimize polling in read_command(). --- plomrogue-server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plomrogue-server.py b/plomrogue-server.py index 0597552..c6bdd44 100755 --- a/plomrogue-server.py +++ b/plomrogue-server.py @@ -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 = "" -- 2.30.2