Public bug reported: Binary package hint: ruby1.8
This bug is already reported and fixed upstream: http://redmine.ruby-lang.org/issues/show/2708 >From the link above: $ cat bug.rb require 'net/http' n = Net::HTTP.new('127.0.0.1', 1234) # or any other unused port n.request_head('/') $ ruby bug.rb /usr/lib/ruby/1.8/net/http.rb:1060:in `request': undefined method `closed?' for nil:NilClass (NoMethodError) from /usr/lib/ruby/1.8/net/http.rb:962:in `request_head' from bug.rb:3 With the patch applied: $ ruby bug.rb /usr/lib/ruby/1.8/net/http.rb:560:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED) from /usr/lib/ruby/1.8/net/http.rb:560:in `open' from /usr/lib/ruby/1.8/net/http.rb:560:in `connect' from /usr/lib/ruby/1.8/timeout.rb:53:in `timeout' from /usr/lib/ruby/1.8/timeout.rb:93:in `timeout' from /usr/lib/ruby/1.8/net/http.rb:560:in `connect' from /usr/lib/ruby/1.8/net/http.rb:553:in `do_start' from /usr/lib/ruby/1.8/net/http.rb:542:in `start' from /usr/lib/ruby/1.8/net/http.rb:1035:in `request' from /usr/lib/ruby/1.8/net/http.rb:962:in `request_head' from bug.rb:3 ** Affects: ruby1.8 (Ubuntu) Importance: Undecided Status: New -- wrong socket handling in http.rb fixed upstream https://bugs.launchpad.net/bugs/580661 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs