Modify select pop stdin

#283  More see this issue
This commit is contained in:
老广
2016-09-05 19:05:12 +08:00
committed by GitHub
parent 0ed4b84b63
commit 8f666785d2

View File

@@ -416,7 +416,7 @@ class WebTerminalHandler(tornado.websocket.WebSocketHandler):
data = ''
pre_timestamp = time.time()
while True:
r, w, e = select.select([self.channel, sys.stdin], [], [])
r, w, e = select.select([self.channel], [], [])
if self.channel in r:
recv = self.channel.recv(1024)
if not len(recv):