Permalink
Browse files

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.
  • Loading branch information...
1 parent 6a1e170 commit b9556cd5b67eb9cfc15aa0de27353a8768f15756 @robinhouston robinhouston committed Mar 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 tweepy/streaming.py
View
@@ -71,7 +71,7 @@ def __init__(self, auth, listener, **options):
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)

0 comments on commit b9556cd

Please sign in to comment.