From b9556cd5b67eb9cfc15aa0de27353a8768f15756 Mon Sep 17 00:00:00 2001 From: Robin Houston Date: Sat, 5 Mar 2011 16:16:39 +0000 Subject: [PATCH] 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. --- tweepy/streaming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1