summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Lange <k@dakko.us>2011-11-30 17:26:22 -0600
committerKevin Lange <k@dakko.us>2011-11-30 17:26:22 -0600
commite0720adbded8b73aea42542f57c02042584b94fc (patch)
treec1a38f3ae23bdad6b56ce95b8992bafdb415f6c0
parent8174fc31338d2e718bbd42c65e249e14f8e6b4b8 (diff)
downloadnyancat-e0720adbded8b73aea42542f57c02042584b94fc.tar.gz
Buffer 1024 characters on each read
-rwxr-xr-xnyancat.py2
1 files changed, 1 insertions, 1 deletions
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:
0141218.b46a22c'>upstream/0+git20141218.b46a22cJonathan McCrohan535-639/+317 2014-10-15Imported Upstream version 0+git20141009.d26b627upstream/0+git20141009.d26b627Jonathan McCrohan2010-11120/+159271 2014-07-23Imported Upstream version 0+git20140611.14bd6c7upstream/0+git20140611.14bd6c7Jonathan McCrohan7-11/+60 2014-05-13Imported Upstream version 0+git20140512.1246b27upstream/0+git20140512.1246b27Jonathan McCrohan391-301/+3983 2014-04-05Imported Upstream version 0+git20140326.cfc2975upstream/0+git20140326.cfc2975Jonathan McCrohan118-656/+877