From e0720adbded8b73aea42542f57c02042584b94fc Mon Sep 17 00:00:00 2001 From: Kevin Lange Date: Wed, 30 Nov 2011 17:26:22 -0600 Subject: Buffer 1024 characters on each read --- nyancat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nyancat.py b/nyancat.py index ebeb303..90029c1 100755 --- a/nyancat.py +++ b/nyancat.py @@ -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: -- cgit v1.2.3