X-Git-Url: https://jfr.im/git/z_archive/twitter.git/blobdiff_plain/d908997bbf25f5d00f527a86d0c9e0240ef2960d..ef99d73454c85384ada9b11abf29571f504e6db8:/twitter/stream.py?ds=inline diff --git a/twitter/stream.py b/twitter/stream.py index 094b5f9..0d8d86f 100644 --- a/twitter/stream.py +++ b/twitter/stream.py @@ -62,7 +62,7 @@ class TwitterJSONIter(object): else: yield {"timeout":True} else: - self.buf += sock.recv(1024) # As tweets are typically longer than 1KB, consider increasing this size. + self.buf += sock.recv(2048) except SSLError as e: if (not self.block or self.timeout) and (e.errno == 2): # Apparently this means there was nothing in the socket buf