voloko/twitter-stream — Issue #22: Does not reconnect properly when using https
Author: timhaines
Created: 2011-11-24 01:11:59+00:00
State: open

To solve the problem, start_tls needs to be called in connection_completed so it gets called each time the connection is connected.

connection.start_tls if options[:ssl] needs to be removed from self.connect

and the following needs to be added to the connection_completed callback:

self.start_tls if @options[:ssl]