]> jfr.im git - z_archive/twitter.git/commit
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)
commit1d59e1e48902f046a4d5aba0b6f1902a572c9cf3
tree6edf2c3bbadb8c4efb988f025fa8c24bfb2b7db2
parent4672219421f09033b9175629e98b5fd265bb26cf
parent894d371790b2d7f5909061fd71ace11092575516
Merge pull request #203 from RouxRC/pr-fix-timeout

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