home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2906acb
)
Server/py: Optimize polling in read_command().
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 6 Mar 2015 12:53:28 +0000
(13:53 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 6 Mar 2015 12:53:28 +0000
(13:53 +0100)
plomrogue-server.py
patch
|
blob
|
history
diff --git
a/plomrogue-server.py
b/plomrogue-server.py
index 05975528d6e66b0c34de55734e7d2e11b9572955..c6bdd44d2832817a93e1ef549c429eb00e3205d3 100755
(executable)
--- 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 = ""