Update to streaming read loop to use delimited stream mode.
authorSteve Jones <steve.r.jones@gmail.com>
Tue, 17 Apr 2012 01:55:48 +0000 (22:55 -0300)
committerSteve Jones <steve.r.jones@gmail.com>
Tue, 17 Apr 2012 01:55:48 +0000 (22:55 -0300)
commit5d275bc778c3042e39d7a7a4c1221d0f7fc8fdac
tree1a58e3f174a075986bc53b06929e417144fd2595
parenta5161337614aee239d46b1fa26877cbbd601c986
Update to streaming read loop to use delimited stream mode.

1) read newlines until a digit appears
2) read rest of digits until another new line appears
3) read next status object
4) repeat

-improved speed over trunk version
-simplify loop logic
-added condition for "self.running and not resp.isclosed()" during each read-loop stage
tweepy/streaming.py