]> jfr.im git - z_archive/twitter.git/commitdiff
Merge pull request #203 from RouxRC/pr-fix-timeout
authorMike Verdone <redacted>
Mon, 17 Feb 2014 21:29:35 +0000 (22:29 +0100)
committerMike Verdone <redacted>
Mon, 17 Feb 2014 21:29:35 +0000 (22:29 +0100)
Fix streams timeout & hangup behavior + ensure python2.6 compat
Here are the changes to fix the misbehavior of the timeout in case of low tweets by catching Twitter's keep-alive heartbeat signals thanks to the select.select originally added in #178 and still problematic as pointed out by @ksecrist in #202

I also generalized the hangup to all cases since there is no reason to stay in infinite loop after a hangup in non-blocking mode.

And to make things easier and avoid merging issues, I adapted the refacto and fixed python2.6 compatibility from @adonoho's #201


Trivial merge