# HG changeset patch # User Matt Johnston # Date 1340505372 -28800 # Node ID 20f7161399a8e10d26b303532bc901ac57578a8c # Parent 2aed800aa2e985e93a76304083b4f931a6db3b45 change timeout for readline diff -r 2aed800aa2e9 -r 20f7161399a8 server/ts.py --- a/server/ts.py Sat Jun 23 23:37:36 2012 +0800 +++ b/server/ts.py Sun Jun 24 10:36:12 2012 +0800 @@ -98,6 +98,7 @@ def turn_off(sock): if TESTING: return 99 + print>>sys.stderr, "sending btoff" sock.send("btoff\n"); # read newline l = readline(sock) diff -r 2aed800aa2e9 -r 20f7161399a8 server/utils.py --- a/server/utils.py Sat Jun 23 23:37:36 2012 +0800 +++ b/server/utils.py Sun Jun 24 10:36:12 2012 +0800 @@ -11,7 +11,7 @@ pass DEFAULT_TRIES = 3 -READLINE_SELECT_TIMEOUT = 20 +READLINE_SELECT_TIMEOUT = 4 __all__ = ('monotonic_time', 'retry')