Merge pull request #497 from tewalds/cert
authorJoshua Roesslein <jroesslein@gmail.com>
Mon, 1 Dec 2014 00:23:07 +0000 (18:23 -0600)
committerJoshua Roesslein <jroesslein@gmail.com>
Mon, 1 Dec 2014 00:23:07 +0000 (18:23 -0600)
Allow specifying your own ssl certificates.

1  2 
tweepy/streaming.py

index 0cf1d7cbe3ea9a824aa1b1784f50651be0127a6a,c18a19243a3c276a22761f2cac3c1267f9d72e46..0265c68e026f0343e298fcfe246c87f53866a16c
@@@ -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 {}