From: Dagnan Date: 2010-05-26T00:00:12+09:00 Subject: Problem with Ruby 1.9, HTTPS and OpenSSL Hi I have a strange problem with my Ruby installation. First: - I use RVM, and I tried to compile Ruby with my system version of openssl (and libs), and with the package version included in RVM. Both fail - I have never had an error during compilation/installation, always at runtime - I don't use a firewall and the page is displayed fine in my browser - with my system install of Ruby (1.8.7) I don't have this problem... I use this simple script ************************* require 'net/http' require 'net/https' require 'uri' url = URI.parse('https://www.google.com') res = Net::HTTP.start(url.host, url.port) { |http| http.get('/') } puts res.body ************************* and I get ~/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/net/protocol.rb: 135:in `read_nonblock': end of file reached (EOFError) from /~/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/net/ protocol.rb:135:in `rbuf_fill' from /~/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/net/ protocol.rb:116:in `readuntil' from /~/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/net/ protocol.rb:126:in `readline' from /~/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/net/ http.rb:2138:in `read_status_line' from /~/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/net/ http.rb:2127:in `read_new' from /~/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/net/ http.rb:1120:in `transport_request' from /~/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/net/ http.rb:1106:in `request' from /~/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/net/ http.rb:817:in `get' from testhttp.rb:6:in `block in
' from /~/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/net/ http.rb:564:in `start' from /~/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/net/ http.rb:453:in `start' from testhttp.rb:6:in `
' What do you think is the source of the problem?