Buffer 1024 characters on each read
This commit is contained in:
parent
8174fc3133
commit
e0720adbde
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user