Streamed tweet data of less than 512 bytes need to get picked-up #230

Closed
jpanganiban wants to merge 1 commit from master into master
Showing only changes of commit 6511dcf4bd - Show all commits

View file

@ -102,7 +102,8 @@ class TwythonStreamer(object):
while self.connected:
response = _send(retry_counter)
for line in response.iter_lines():
# So that first tweets get picked-up.
for line in response.iter_lines(chunk_size=1):
if not self.connected:
break
if line: