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
1 changed files with 1 additions and 1 deletions

View File

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