From: Robin Houston Date: Sat, 5 Mar 2011 16:16:39 +0000 (+0000) Subject: A five-second default timeout is pretty ridiculous for streaming X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b9556cd5b67eb9cfc15aa0de27353a8768f15756;p=tweepy.git A five-second default timeout is pretty ridiculous for streaming searches, where Twitter will take longer than five seconds even to send a response header. My preferred default would be no timeout at all, but if we are to have one then five minutes seems more reasonable than five seconds. --- diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 73b632d..03a06eb 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -71,7 +71,7 @@ class Stream(object): self.auth = auth self.listener = listener self.running = False - self.timeout = options.get("timeout", 5.0) + self.timeout = options.get("timeout", 300.0) self.retry_count = options.get("retry_count") self.retry_time = options.get("retry_time", 10.0) self.snooze_time = options.get("snooze_time", 5.0)