From: Joshua Roesslein Date: Mon, 1 Dec 2014 00:23:07 +0000 (-0600) Subject: Merge pull request #497 from tewalds/cert X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0c19a88e6e70b4009ede3fa946e608df15b117cd;p=tweepy.git Merge pull request #497 from tewalds/cert Allow specifying your own ssl certificates. --- 0c19a88e6e70b4009ede3fa946e608df15b117cd diff --cc tweepy/streaming.py index 0cf1d7c,c18a192..0265c68 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@@ -189,14 -135,10 +189,16 @@@ class Stream(object) self.retry_time_cap = options.get("retry_time_cap", 320.0) self.snooze_time_step = options.get("snooze_time", 0.25) self.snooze_time_cap = options.get("snooze_time_cap", 16) - self.buffer_size = options.get("buffer_size", 1500) + + # The default socket.read size. Default to less than half the size of + # a tweet so that it reads tweets with the minimal latency of 2 reads + # per tweet. Values higher than ~1kb will increase latency by waiting + # for more data to arrive but may also increase throughput by doing + # fewer socket read calls. + self.chunk_size = options.get("chunk_size", 512) + self.verify = options.get("verify", True) + self.api = API() self.session = requests.Session() self.session.headers = options.get("headers") or {}