Buffer 1024 characters on each read

This commit is contained in:
Kevin Lange 2011-11-30 17:26:22 -06:00
parent 8174fc3133
commit e0720adbde

View File

@ -19,7 +19,7 @@ class TNH(TelnetHandler):
else: else:
p.stdin.write("2\n") p.stdin.write("2\n")
while 1: while 1:
s = p.stdout.read(1) s = p.stdout.read(1024)
try: try:
self.write(s) self.write(s)
except: except: