igrigorik/em-synchrony — Issue #82: SSL doesn't work after setting TCPSocket = EventMachine::Synchrony::TCPSocket
Author: tobowers
Created: 2011-11-09 18:12:46+00:00
State: open

minimum to reproduce:

```ruby

EM.synchrony do
TCPSocket = EventMachine::Synchrony::TCPSocket
obj = Net::HTTP.new("google.com", 443)
obj.use_ssl = true
obj.verify_mode = OpenSSL::SSL::VERIFY_NONE
obj.get("/")
EM.stop
end
````

triggers:

ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:658:in `initialize': wrong argument type EventMachine::Synchrony::TCPSocket (expected File) (TypeError)
from /Users/topper/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:658:in `new'
from /Users/topper/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:658:in `connect'
from /Users/topper/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:637:in `do_start'
from /Users/topper/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:626:in `start'
from /Users/topper/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:1168:in `request'
from /Users/topper/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:888:in `get'