Mercurial > templog
comparison server/ts.py @ 353:20f7161399a8
change timeout for readline
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 24 Jun 2012 10:36:12 +0800 |
parents | e7f070855a22 |
children | b09c164debf6 |
comparison
equal
deleted
inserted
replaced
351:2aed800aa2e9 | 353:20f7161399a8 |
---|---|
96 | 96 |
97 @retry() | 97 @retry() |
98 def turn_off(sock): | 98 def turn_off(sock): |
99 if TESTING: | 99 if TESTING: |
100 return 99 | 100 return 99 |
101 print>>sys.stderr, "sending btoff" | |
101 sock.send("btoff\n"); | 102 sock.send("btoff\n"); |
102 # read newline | 103 # read newline |
103 l = readline(sock) | 104 l = readline(sock) |
104 if not l: | 105 if not l: |
105 print>>sys.stderr, "Bad response to btoff\n" | 106 print>>sys.stderr, "Bad response to btoff\n" |